Searched refs:hsv (Results 1 – 8 of 8) sorted by relevance
34 void SkRGBToHSV(U8CPU r, U8CPU g, U8CPU b, SkScalar hsv[3]) { in SkRGBToHSV()35 SkASSERT(hsv); in SkRGBToHSV()45 hsv[0] = 0; in SkRGBToHSV()46 hsv[1] = 0; in SkRGBToHSV()47 hsv[2] = v; in SkRGBToHSV()69 hsv[0] = h; in SkRGBToHSV()70 hsv[1] = s; in SkRGBToHSV()71 hsv[2] = v; in SkRGBToHSV()84 SkColor SkHSVToColor(U8CPU a, const SkScalar hsv[3]) { in SkHSVToColor()85 SkASSERT(hsv); in SkHSVToColor()[all …]
105 SK_API void SkRGBToHSV(U8CPU red, U8CPU green, U8CPU blue, SkScalar hsv[3]);114 static inline void SkColorToHSV(SkColor color, SkScalar hsv[3]) in SkColorToHSV()116 SkRGBToHSV(SkColorGetR(color), SkColorGetG(color), SkColorGetB(color), hsv); in SkColorToHSV()128 SK_API SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3]);138 static inline SkColor SkHSVToColor(const SkScalar hsv[3]) in SkHSVToColor()140 return SkHSVToColor(0xFF, hsv); in SkHSVToColor()
481 public void rgbToHsv(float r, float g, float b, float[] hsv) { in rgbToHsv() argument489 hsv[2] = cmax; /* value */ in rgbToHsv()491 hsv[1] = (cmax - cmin) / cmax; in rgbToHsv()493 hsv[1] = 0.0f; in rgbToHsv()494 hsv[0] = 0.0f; in rgbToHsv()496 if (hsv[1] == 0.0) { in rgbToHsv()497 hsv[0] = -1.0f; in rgbToHsv()504 hsv[0] = bc - gc; in rgbToHsv()506 hsv[0] = 2.0f + rc - bc; in rgbToHsv()508 hsv[0] = 4.0f + gc - rc; in rgbToHsv()[all …]
130 SkScalar hsv[3]; in genColor() local131 hsv[0] = rand->nextRangeF(0.0f, 360.0f); in genColor()132 hsv[1] = rand->nextRangeF(0.75f, 1.0f); in genColor()133 hsv[2] = rand->nextRangeF(0.75f, 1.0f); in genColor()135 return SkHSVToColor(hsv); in genColor()
131 SkScalar hsv[3]; in genColor() local132 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 SkHSVToColor(hsv); in genColor()
60 static SkColor HSV_to_RGB(SkColor color, HSV_Choice choice, SkScalar hsv) { in HSV_to_RGB() argument61 SkScalar hue = choice == kGetHue ? hsv : RGB_to_HSV(color, kGetHue); in HSV_to_RGB()62 SkScalar saturation = choice == kGetSaturation ? hsv : RGB_to_HSV(color, kGetSaturation); in HSV_to_RGB()63 SkScalar value = choice == kGetValue ? hsv : RGB_to_HSV(color, kGetValue); in HSV_to_RGB()
4691 var hsv=this.hsv;4693 if(typeof (hsv)=="undefined"||hsv===null){4694 hsv=MochiKit.Color.rgbToHSV(this.rgb);4695 this.hsv=hsv;4697 return MochiKit.Base.clone(hsv);4869 var hsv=hue;4870 hue=hsv.h;4871 _513=hsv.s;4872 _514=hsv.v;4873 _515=hsv.a;
META-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...