back to notes

Tag Cloud

I've tweaked the tagroll badge generator to size tags better and added
two optional parameters, size and color range.

For example, to display maciej's tag cloud as a bloody mist:

http://pinboard.in/badge?num=500&user=maciej&color=ff8888-aa0000&size=12-36

color takes two hex RGB colors separated by a -. Size takes two font
sizes. There really isn't any error checking so if you enter gibberish
you'll probably get some gibberish back. Initial values can be larger
than end values though, so size=36-14 is fine (if of dubious use).

Once again, this is not for inclusion in templates yet, just a
starting point for feedback. Different display methods, other
parameters (title, 'i am foo at pinboard.in' come to mind), etc, if
you have any suggestions do drop us a line.

Thanks,

-pvg


On Fri, Feb 12, 2010 at 10:02 PM, maciej <mceglowski@gmail.com> wrote:
I've created a rudimentary 'tag cloud' badge for people to play with.
The URL format is:

http://pinboard.in/badge?num=30&user=maciej

Where num is the number of tags you want displayed, and user is the
username.

Right now the font size, color and opacity is pretty terrible. My
hope is that some design-minded users will play with the javascript
and figure out a way to make things look nice for all users (whether
they have thousands of tags or just a few).

Please don't use this in your site template yet - the URL will
change. This is just to get the futzing process started.

Thanks!

Maciej


last updated february 2010