Sometimes you decide that you just need a tag (and category)
cloud. The top search result was
from SuperDevResources
by Kanishk
Kunal, which worked pretty well, but I didn't like the sizes,
and wanted to have fun colours. Here's my version:
The code is very close to the same except
that site.blogPath is something I defined for my stuff
that won't exist for you. Since everything is in
the blog category, there didn't seem to be any point to
including it in the cloud.
For fun, I set the colour
with HSL
with a random hue. Since the hue defaults to a number that
represents a degree between 0-360 but larger numbers just act as
more circuits around the circle, big numbers just add to the
randomness. So, I made a pseudorandom number generator by taking
the current time in seconds and dividing by 400 and rounding to an
integer. It works well enough for me. ¯\_(ツ)_/¯.
For the font sizes, I wanted more size variation, but with a size
cap. Obviously, I needed logarithmic math, so I had to make a
filter like so: