|
|
Here's the last function to replace.
Returns the hue color you click, POV color 0-1;
function colorhue(i) {
var z = 320;
var v = .3 + .12 * i / z;
var h = 1.0 - ((i % z) / z);
if (i < 960) return "<"+roundv(hsv2rgb(h,1,v),6)+">";
v = .33 + .12 * (i%960) / z;
return "<"+roundv(hsl2rgb(h,1,v),6)+">";
}
Post a reply to this message
|
|