Template talk:HSLtoRGB.R

The discussion pages for the implementation and documentation pages of are all redirected to this common talk page.
 * Template:HSLtoRGB.R
 * Template:HSLtoRGB.G
 * Template:HSLtoRGB.B

This palette generates a spiral palette, whose hue turns nearly 3 times around the color circle, saturation grows from 66.7% to 100%, and lightness grows from 40% to 79%; in that palette, all colors have distinct hue, saturation and lightness values, and at least two distinct values of red, green or blue components.
 * Example of color palette generation

Mistakes
Hi

I've spend plenty of time with searching for the mistakes in this post, so be warned: the brackets around (H mod 360) are not correct / sometimes missing. I can just post parts of my working csharp code here: G = lum - (1 - (hue % 360) / 30.0) * sat * (1 - lum); G = (1 - (1 - (hue % 360) / 30) * sat) * lum; AvMrk (talk) 20:56, 29 July 2010 (UTC)