Template:Team:UC Davis/MutantWidget

From 2011.igem.org

(Difference between revisions)
Line 7: Line 7:
// RGB <-> HSL conversions based on equations from wikipedia.
// RGB <-> HSL conversions based on equations from wikipedia.
// If they're wrong, don't blame me!
// If they're wrong, don't blame me!
-
function RGB2HSL(r,g,b)`
+
function RGB2HSL(r,g,b)
{
{
var alpha = 1/2*(2*r-g-b);
var alpha = 1/2*(2*r-g-b);

Revision as of 02:12, 25 September 2011