Searched refs:hsv (Results 1 – 9 of 9) sorted by relevance
/external/vulkan-validation-layers/libs/glm/gtx/ |
D | color_space.inl | 15 detail::tvec3<T, P> hsv = hsvColor; local 18 if(hsv.y == static_cast<T>(0)) 20 rgbColor = detail::tvec3<T, P>(hsv.z); 23 T sector = floor(hsv.x / T(60)); 24 T frac = (hsv.x / T(60)) - sector; 26 T o = hsv.z * (T(1) - hsv.y); 27 T p = hsv.z * (T(1) - hsv.y * frac); 28 T q = hsv.z * (T(1) - hsv.y * (T(1) - frac)); 34 rgbColor.r = hsv.z; 40 rgbColor.g = hsv.z; [all …]
|
/external/skia/src/core/ |
D | SkColor.cpp | 33 void SkRGBToHSV(U8CPU r, U8CPU g, U8CPU b, SkScalar hsv[3]) { in SkRGBToHSV() 34 SkASSERT(hsv); in SkRGBToHSV() 44 hsv[0] = 0; in SkRGBToHSV() 45 hsv[1] = 0; in SkRGBToHSV() 46 hsv[2] = v; in SkRGBToHSV() 68 hsv[0] = h; in SkRGBToHSV() 69 hsv[1] = s; in SkRGBToHSV() 70 hsv[2] = v; in SkRGBToHSV() 73 SkColor SkHSVToColor(U8CPU a, const SkScalar hsv[3]) { in SkHSVToColor() 74 SkASSERT(hsv); in SkHSVToColor() [all …]
|
/external/skia/tests/ |
D | HSVRoundTripTest.cpp | 13 SkScalar hsv[3]; in DEF_TEST() local 18 SkColorToHSV(color, hsv); in DEF_TEST() 19 SkColor result = SkHSVToColor(0xFF, hsv); in DEF_TEST() 25 color, hsv[0], hsv[1], hsv[2], result); in DEF_TEST()
|
/external/skia/gm/ |
D | manypaths.cpp | 17 SkScalar hsv[3]; in gen_color() local 18 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in gen_color() 19 hsv[1] = rand->nextRangeF(0.5f, 1.0f); in gen_color() 20 hsv[2] = rand->nextRangeF(0.5f, 1.0f); in gen_color() 22 return sk_tool_utils::color_to_565(SkHSVToColor(hsv)); in gen_color()
|
D | ovals.cpp | 131 SkScalar hsv[3]; in genColor() local 132 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in genColor() 133 hsv[1] = rand->nextRangeF(0.75f, 1.0f); in genColor() 134 hsv[2] = rand->nextRangeF(0.75f, 1.0f); in genColor() 136 return sk_tool_utils::color_to_565(SkHSVToColor(hsv)); in genColor()
|
D | roundrects.cpp | 23 SkScalar hsv[3]; in gen_color() local 24 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in gen_color() 25 hsv[1] = rand->nextRangeF(0.75f, 1.0f); in gen_color() 26 hsv[2] = rand->nextRangeF(0.75f, 1.0f); in gen_color() 28 return sk_tool_utils::color_to_565(SkHSVToColor(hsv)); in gen_color()
|
/external/skia/include/core/ |
D | SkColor.h | 119 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]); 128 static inline void SkColorToHSV(SkColor color, SkScalar hsv[3]) { in SkColorToHSV() 129 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); in SkColorToHSV() 141 SK_API SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3]); 151 static inline SkColor SkHSVToColor(const SkScalar hsv[3]) { in SkHSVToColor() 152 return SkHSVToColor(0xFF, hsv); in SkHSVToColor()
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/util/ |
D | UberColorPickerDialog.java | 375 float[] hsv = new float[3]; in drawSwatches() local 381 Color.colorToHSV(mOriginalColor, hsv); in drawSwatches() 384 if (hsv[2] > .5) in drawSwatches() 536 float[] hsv = new float[3]; in setOvalValDimmer() local 537 hsv[0] = mHSV[0]; in setOvalValDimmer() 538 hsv[1] = 0; in setOvalValDimmer() 539 hsv[2] = mHSV[2]; in setOvalValDimmer() 540 int gray = Color.HSVToColor(hsv); in setOvalValDimmer() 548 float[] hsv = new float[3]; in setVerValSlider() local 549 hsv[0] = mHSV[0]; in setVerValSlider() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_colorsys.py | 41 for (rgb, hsv) in values: 42 self.assertTripleEqual(hsv, colorsys.rgb_to_hsv(*rgb)) 43 self.assertTripleEqual(rgb, colorsys.hsv_to_rgb(*hsv))
|