Color wheel: Difference between revisions

Content added Content deleted
(→‎{{header|zkl}}: re-invent the wheel)
m (→‎{{header|zkl}}: delete a word)
Line 76: Line 76:


=={{header|zkl}}==
=={{header|zkl}}==
Each point in the square is converted to polar coordinates, the angle is hue and the radius is saturation (which is scaled by the distance from the pole). If the radius/saturation is in the circle, render it.
Each point in a square is converted to polar coordinates, the angle is hue and the radius is saturation (which is scaled by the distance from the pole). If the radius/saturation is in the circle, render it.


Uses the PPM class from http://rosettacode.org/wiki/Bitmap/Bresenham%27s_line_algorithm#zkl
Uses the PPM class from http://rosettacode.org/wiki/Bitmap/Bresenham%27s_line_algorithm#zkl