reHSB
HC
Graphics
Direct Graphics
reHSB
reHSB color
outputs a list of three numbers, hue, saturation and brightness, which represent the color in the HSB color space.
You can now easily read the color database using getColorDatabase, convert all the colors to HSB, sort by hue, and write a nice HTML colortable, like in colordb2html.lg.
reHSB does not round the color values, but it can only work with integer colors using 8 bits per channel. If you need more exactness, use the Logo functions defined in testrgb2hsb.lg.
Example:
show reHSB HSB 83 0.9 0.75
;[83.0233 0.900524 0.74902]
|
Reference: