Home | History | Annotate | Download | only in core

Lines Matching defs:hsv

98 /** Convert RGB components to HSV.
99 hsv[0] is Hue [0 .. 360)
100 hsv[1] is Saturation [0...1]
101 hsv[2] is Value [0...1]
105 @param hsv 3 element array which holds the resulting HSV components.
107 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]);
109 /** Convert the argb color to its HSV components.
110 hsv[0] is Hue [0 .. 360)
111 hsv[1] is Saturation [0...1]
112 hsv[2] is Value [0...1]
114 @param hsv 3 element array which holds the resulting HSV components.
116 static inline void SkColorToHSV(SkColor color, SkScalar hsv[3])
118 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv);
121 /** Convert HSV components to an ARGB color. The alpha component is passed through unchanged.
122 hsv[0] is Hue [0 .. 360)
123 hsv[1] is Saturation [0...1]
124 hsv[2] is Value [0...1]
125 If hsv values are out of range, they are pinned.
127 @param hsv 3 element array which holds the input HSV components.
130 SK_API SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3]);
132 /** Convert HSV components to an ARGB color. The alpha component set to 0xFF.
133 hsv[0] is Hue [0 .. 360)
134 hsv[1] is Saturation [0...1]
135 hsv[2] is Value [0...1]
136 If hsv values are out of range, they are pinned.
137 @param hsv 3 element array which holds the input HSV components.
140 static inline SkColor SkHSVToColor(const SkScalar hsv[3])
142 return SkHSVToColor(0xFF, hsv);