Namespaces | |
DD | |
Private support functions for OpHints. | |
DD::Image | |
Conversion between RGB and HSV and HSL.
The Hue is given in the range 0-1, with 0 being red. Multiply by 360 to get the hue reported by other software. If the hue cannot be determined (due to a gray color) then h is set to 0 and true is returned.
The colors may be outside the 0-1 range, this will result in saturation and value outside the 0-1 range. This may not convert bi-directionally without change.
The RGB values may need to be converted using a DD::Image::LUT to the sRGB space before these functions will return values that match other software.
©2024 The Foundry Visionmongers, Ltd. All Rights Reserved. |