Cool. And yep, we have an HSV to RGB converter directly in our ColorMath library that we set up, too. I've done it twice as well, once in HLSL and once in C#. Never in Javascript, tho.
I think the one in ColorMath is using tinyint style 0-255 definitions, Keith. So simply having it loop through like this and do an export would work:
for ( int h = 0; h <= 255; h += 10 )
{
normal = GetRGBFromHSV( h, 255, 255 );
pale = GetRGBFromHSV( h, 180, 255 );
dark = GetRGBFromHSV( h, 255, 180 );
}
And then I guess tacking on a few grays/whites:
white = GetRGBFromHSV( 0, 0, 255 );
gray = GetRGBFromHSV( 0, 0, 180 );
dark gray = GetRGBFromHSV( 0, 0, 90 );
black = GetRGBFromHSV( 0, 0, 0 );
And then we're done. We'd need to export that to our xml file and then come up with friendly names for them (or not show names, either way), but that's about it. Any modders want to take a crack at that pseudocode and save Keith the trouble?