Help - Search - Members - Calendar
Full Version: how to display color-coded albums
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
sjhonny
[noob question] i'd like to display each album in a different color, as shown here in this picture i got.
how can i do that?
thanks in advance,
J

IPB Image
Purple Monkey
I use:
CODE
$put(album_colour,$hsl($mod($div($crc32($if3(%musicbrainz_albumid%,%musicbrainz album id%,%live%,%album%,%title%)),240),220),160,100)
)

$put(album_colour2,$hsl($mod($add($mod($div($crc32($if3(%musicbrainz_albumid%,%musicbrainz album id%,%live%,%album%,%title%)),240),220 ),128),256),150,120)
)


The last two numbers for each one are the saturation and lightness, the "magic numbers" are to make the hue. Changing them as and effect on the spread and range of colours. album_colour2 has the opposite hue to album_colour.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.