elplaylist and PSS expect RGB colours separated with dashes like this...
255-0-0
so if your tags contained values like that, simply using %tag% in the colour part of the various $drawtextex or $drawrect functions should work.
with WSH panel mod, there is an RGB function you can use...
function RGB(r, g, b) {
return (0xff000000 | (r << 16) | (g << 8) | (b));
}
so now you have 2 things to consider here: getting the tag and then splitting it into 3 values which you can pass into this function. there is a function named fb.TitleFormat which you can use like this
var temp_colour = fb.TitleFormat("%tag%").Eval()
note the above Eval() part only works on the playing track. if you want it to work on the selected track regardless of whether foobar is playing or not, you can do this...
var metadb = fb.GetFocusItem();
var temp_colour = fb.TitleFormat("%tag%").EvalWithMetadb(metadb);
now we have the value, we can use the javascript split function which creates a new array with the 3 RGB values.
var colour_array = temp_colour.split("-");
//finally pass the 3 values of this array to the RGB function.
var colour = RGB(colour_array[0], colour_array[1], colour_array[2]);
you can try picking apart this theme as it has WSH item details panel. http://extremehunter1972.deviantart.com/ar...013-4-368146015