FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
function hueToRGB
(
hue
)
Definition at line
318
of file
index.js
.
Referenced by
hueToHex()
.
319
{
320
hue /= 3;
321
hue %= 6;
322
323
if
(hue<1)
return
parseInt(255*hue);
324
if
(hue<3)
return
parseInt(255);
325
if
(hue<4)
return
parseInt(255*(4-hue));
326
327
/*
328
if (hue<1*5/4) return parseInt(255*hue*4/5);
329
if (hue<2*5/4) return parseInt(255);
330
if (hue<3*5/4) return parseInt(255*(3*5/4-hue)*4/5);
331
*/
332
/*
333
if (hue<1.5) return parseInt(255*hue/1.5);
334
if (hue<3.0) return parseInt(255);
335
if (hue<4.5) return parseInt(255*(4.5-hue)/1.5);
336
*/
337
return
0.
338
}
Here is the caller graph for this function:
www~
index.js
Generated on Sun Sep 18 2016 20:50:42 for FACT++ by
1.8.11