HTML-Tested-JavaScript
view release on metacpan or search on metacpan
javascript/color_picker.js view on Meta::CPAN
if( r == max )
h = (g - b) / delta;
else if(g == max)
h = 2 + (b - r) / delta;
else
h = 4 + (r - g) / delta;
h *= 60;
if(h < 0)
h += 360;
else if (isNaN(h))
h = 360;
return [ Math.round(h), Math.round(s * 100), Math.round(v * 100) ];
}
function htcp_client_x(e) { return e.clientX + window.pageXOffset; }
function htcp_client_y(e) { return e.clientY + window.pageYOffset; }
function htcp_save_x_dimensions(el, e, ctx) {
ctx.down_x = htcp_client_x(e);
( run in 0.328 second using v1.01-cache-2.11-cpan-fd5d4e115d8 )