Color Space Functions
Header: | #include <UnigineMathLibColorSpaces.h> |
Math Class
Members
vec3 hueToRgb ( float hue ) #
Converts Hue color value to RGB (Red, Green, Blue) color values.Arguments
- float hue - Hue color value.
Return value
RGB (Red, Green, Blue) color values.vec3 rgbToHcv ( vec3 rgb ) #
Converts RGB (Red, Green, Blue) color values to HCV (Hue, Chroma, Value) color values.Arguments
- vec3 rgb - RGB (Red, Green, Blue) color values.
Return value
HCV (Hue, Chroma, Value) color values.vec3 rgbToHsv ( vec3 rgb ) #
Converts RGB (Red, Green, Blue) color values to HSV (Hue, Saturation, Value) color values.Arguments
- vec3 rgb - RGB (Red, Green, Blue) color values.
Return value
HSV (Hue, Saturation, Value).vec3 hsvToRgb ( vec3 hsv ) #
Converts HSV (Hue, Saturation, Value) color values to RGB (Red, Green, Blue) color values.Arguments
- vec3 hsv - HSV (Hue, Saturation, Value).
Return value
RGB (Red, Green, Blue) color values.vec3 rgbToHcy ( vec3 rgb ) #
Converts RGB (Red, Green, Blue) color values to HCY (Hue, Chroma, Luma) color values.Arguments
- vec3 rgb - RGB (Red, Green, Blue) color values.
Return value
HCY (Hue, Chroma, Luma) color values.vec3 hcyToRgb ( vec3 hcy ) #
Converts HCY (Hue, Chroma, Luma) to RGB (Red, Green, Blue) color values.Arguments
- vec3 hcy - HCY (Hue, Chroma, Luma) color values.
Return value
RGB (Red, Green, Blue) color values.vec3 rgbToHcl ( vec3 rgb ) #
Converts RGB (Red, Green, Blue) color values to HCL (Hue, Chroma, Luminance) color values.Arguments
- vec3 rgb - RGB (Red, Green, Blue) color values.
Return value
HCL (Hue, Chroma, Luminance) color values.vec3 hclToRgb ( vec3 hcl ) #
Converts HCL (Hue, Chroma, Luminance) to RGB (Red, Green, Blue) color values.Arguments
- vec3 hcl - HCL (Hue, Chroma, Luminance) color values.
Return value
RGB (Red, Green, Blue) color values.vec3 rgbToHsl ( vec3 rgb ) #
Converts RGB (Red, Green, Blue) color values to HSL (Hue, Saturation, Lightness) color values.Arguments
- vec3 rgb - RGB (Red, Green, Blue) color values.
Return value
HSL (Hue, Saturation, Lightness) color values.vec3 hslToRgb ( vec3 hsl ) #
Converts HSL (Hue, Saturation, Lightness) to RGB (Red, Green, Blue) color values.Arguments
- vec3 hsl - HSL (Hue, Saturation, Lightness) color values.
Return value
RGB (Red, Green, Blue) color values.vec3 rgbToYuv ( vec3 rgb ) #
Converts RGB (Red, Green, Blue) color values to YUV (Luminance, Delta Blue, Delta Red) color values.Arguments
- vec3 rgb - RGB (Red, Green, Blue) color values.
Return value
YUV (Luminance, Delta Blue, Delta Red) color values.vec3 yuvToRgb ( vec3 yuv ) #
Converts YUV (Luminance, Delta Blue, Delta Red) to RGB (Red, Green, Blue) color values.Arguments
- vec3 yuv - YUV (Luminance, Delta Blue, Delta Red) color values.
Return value
RGB (Red, Green, Blue) color values.vec3 rgbToYcbcr ( vec3 rgb ) #
Converts RGB (Red, Green, Blue) color values to YCbCr (Luma, Chrominance Blue, Chrominance Red) color values.Arguments
- vec3 rgb - RGB (Red, Green, Blue) color values.
Return value
YCbCr (Luma, Chrominance Blue, Chrominance Red) color values.vec3 ycbcrToRgb ( vec3 ycc ) #
Converts YCbCr (Luma, Chrominance Blue, Chrominance Red) to RGB (Red, Green, Blue) color values.Arguments
- vec3 ycc - YCbCr (Luma, Chrominance Blue, Chrominance Red) color values.
Return value
RGB (Red, Green, Blue) color values.vec3 rgbToYcgco ( vec3 rgb ) #
Converts RGB (Red, Green, Blue) color values to YCgCo (Luma, Chrominance Green, Chrominance Orange) color values.Arguments
- vec3 rgb - RGB (Red, Green, Blue) color values.
Return value
YCgCo (Luma, Chrominance Green, Chrominance Orange) color values.vec3 ycgcoToRgb ( vec3 ycc ) #
Converts YCgCo (Luma, Chrominance Green, Chrominance Orange) color values to RGB (Red, Green, Blue) color values.Arguments
- vec3 ycc - YCgCo (Luma, Chrominance Green, Chrominance Orange) color values.
Return value
RGB (Red, Green, Blue) color values.Last update:
2024-10-30
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)