Ngl.hsvrgb
Converts from the HSV color space to RGB.
Prototype
r, g, b = Ngl.hsvrgb(h, s, v)
Arguments
hHue values in the range [0.,360.). A hue of 0. corresponds to red.
sSaturation values in the range [0.,1.]. Saturation is a measure of how much white light is mixed with the color. Saturation values of 0. represent grays (with a gray value equal to the value V). Saturation values of 1. are fully saturated colors. The hue is undefined when S=0. The fully saturated pure hues occur when S=1. and V=1.
vValues for the value component in the range [0.,1.].
Return values
r, g, bThe red, green, and blue intensity values in the range [0., 1.].
Description
This function converts from the HSV (Hue, Saturation, Value) color space to the RGB (Red, Green, Blue) color space.
See Also
Ngl.hlsrgb, Ngl.rgbhls, Ngl.rgbhsv, Ngl.rgbyiq, Ngl.yiqrgb
Examples
See color3.py and its three color wheel plots: wheel1, wheel2, wheel3.