convert colors from the rgb color cube to the hsv color cone
module rgb_to_hsv {
float r<NEportLevels={0x2,0x1}>;
float g<NEportLevels={0x2,0x1}>;
float b<NEportLevels={0x2,0x1}>;
float h<NEportLevels={0x1,0x2}>;
float s<NEportLevels={0x1,0x2}>;
float v<NEportLevels={0x1,0x2}>;
method+notify_val+notify_inst method_src = "rgb_to_hsv_proc";
};
Float. A value between 0 and 1 specifying hue.
A value between 0 and 1 specifying saturation.
A value between 0 and 1 specifying value.
Float. A value between 0 and 1 specifying red.
Float. A value between 0 and 1 specifying green.
Float. A value between 0 and 1 specifying blue.
rgb_to_hsv converts from the red, green, blue (rgb) color cube to the hue, saturation, and value (hsv) color cone. For a description of the hsv color cone and rgb color cube, see See hsv_to_rgb .
The hsv values are not computed until all three inputs are set.