Home
last modified time | relevance | path

Searched refs:hue (Results 1 – 25 of 86) sorted by relevance

1234

/external/ImageMagick/MagickCore/
Dgem.c88 MagickPrivate void ConvertHCLToRGB(const double hue,const double chroma, in ConvertHCLToRGB() argument
106 h=6.0*hue; in ConvertHCLToRGB()
181 MagickPrivate void ConvertHCLpToRGB(const double hue,const double chroma, in ConvertHCLpToRGB() argument
200 h=6.0*hue; in ConvertHCLpToRGB()
286 MagickPrivate void ConvertHSBToRGB(const double hue,const double saturation, in ConvertHSBToRGB() argument
309 h=6.0*(hue-floor(hue)); in ConvertHSBToRGB()
389 MagickPrivate void ConvertHSIToRGB(const double hue,const double saturation, in ConvertHSIToRGB() argument
404 h=360.0*hue; in ConvertHSIToRGB()
462 MagickExport void ConvertHSLToRGB(const double hue,const double saturation, in ConvertHSLToRGB() argument
477 h=hue*360.0; in ConvertHSLToRGB()
[all …]
Denhance.c1376 hue, in Contrast() local
1385 hue=0.0; in Contrast()
1388 ConvertRGBToHSB(*red,*green,*blue,&hue,&saturation,&brightness); in Contrast()
1396 ConvertHSBToRGB(hue,saturation,brightness,red,green,blue); in Contrast()
3455 hue, in ModulateHCL() local
3462 ConvertRGBToHCL(*red,*green,*blue,&hue,&chroma,&luma); in ModulateHCL()
3463 hue+=fmod((percent_hue-100.0),200.0)/200.0; in ModulateHCL()
3466 ConvertHCLToRGB(hue,chroma,luma,red,green,blue); in ModulateHCL()
3474 hue, in ModulateHCLp() local
3481 ConvertRGBToHCLp(*red,*green,*blue,&hue,&chroma,&luma); in ModulateHCLp()
[all …]
/external/libmonet/palettes/
DTonalPalette.java29 double hue; field in TonalPalette
59 public static TonalPalette fromHueAndChroma(double hue, double chroma) { in fromHueAndChroma() argument
60 return new TonalPalette(hue, chroma, createKeyColor(hue, chroma)); in fromHueAndChroma()
63 private TonalPalette(double hue, double chroma, Hct keyColor) { in TonalPalette() argument
65 this.hue = hue; in TonalPalette()
71 private static Hct createKeyColor(double hue, double chroma) { in createKeyColor() argument
73 Hct smallestDeltaHct = Hct.from(hue, chroma, startTone); in createKeyColor()
90 final Hct hctAdd = Hct.from(hue, chroma, startTone + delta); in createKeyColor()
97 final Hct hctSubtract = Hct.from(hue, chroma, startTone - delta); in createKeyColor()
119 color = Hct.from(this.hue, this.chroma, tone).toInt(); in tone()
[all …]
DCorePalette.java56 double hue = hct.getHue(); in CorePalette() local
59 this.a1 = TonalPalette.fromHueAndChroma(hue, chroma); in CorePalette()
60 this.a2 = TonalPalette.fromHueAndChroma(hue, chroma / 3.); in CorePalette()
61 this.a3 = TonalPalette.fromHueAndChroma(hue + 60., chroma / 2.); in CorePalette()
62 this.n1 = TonalPalette.fromHueAndChroma(hue, min(chroma / 12., 4.)); in CorePalette()
63 this.n2 = TonalPalette.fromHueAndChroma(hue, min(chroma / 6., 8.)); in CorePalette()
65 this.a1 = TonalPalette.fromHueAndChroma(hue, max(48., chroma)); in CorePalette()
66 this.a2 = TonalPalette.fromHueAndChroma(hue, 16.); in CorePalette()
67 this.a3 = TonalPalette.fromHueAndChroma(hue + 60., 24.); in CorePalette()
68 this.n1 = TonalPalette.fromHueAndChroma(hue, 4.); in CorePalette()
[all …]
/external/libmonet/score/
DScore.java86 int hue = (int) Math.floor(hct.getHue()); in score() local
87 huePopulation[hue] += entry.getValue(); in score()
93 for (int hue = 0; hue < 360; hue++) { in score()
94 double proportion = huePopulation[hue] / populationSum; in score()
95 for (int i = hue - 14; i < hue + 16; i++) { in score()
105 int hue = MathUtils.sanitizeDegreesInt((int) Math.round(hct.getHue())); in score() local
106 double proportion = hueExcitedProportions[hue]; in score()
/external/libmonet/hct/
DHct.java41 private double hue; field in Hct
55 public static Hct from(double hue, double chroma, double tone) { in from() argument
56 int argb = HctSolver.solveToInt(hue, chroma, tone); in from()
75 return hue; in getHue()
107 setInternalState(HctSolver.solveToInt(hue, newChroma, tone)); in setChroma()
117 setInternalState(HctSolver.solveToInt(hue, chroma, newTone)); in setTone()
153 hue = cam.getHue(); in setInternalState()
DCam16.java54 private final double hue; field in Cam16
85 return hue; in getHue()
162 double hue, in Cam16() argument
171 this.hue = hue; in Cam16()
249 double hue = in fromXyzInViewingConditions() local
253 double hueRadians = Math.toRadians(hue); in fromXyzInViewingConditions()
272 double huePrime = (hue < 20.14) ? hue + 360 : hue; in fromXyzInViewingConditions()
290 return new Cam16(hue, c, j, q, m, s, jstar, astar, bstar); in fromXyzInViewingConditions()
/external/libmonet/temperature/
DTemperatureCache.java86 double hue = MathUtils.sanitizeDegreesDouble( in getComplement() local
88 if (!isBetween(hue, startHue, endHue)) { in getComplement()
91 Hct possibleAnswer = getHctsByHue().get((int) Math.round(hue)); in getComplement()
135 int hue = MathUtils.sanitizeDegreesInt(startHue + i); in getAnalogousColors() local
136 Hct hct = getHctsByHue().get(hue); in getAnalogousColors()
148 int hue = MathUtils.sanitizeDegreesInt(startHue + hueAddend); in getAnalogousColors() local
149 Hct hct = getHctsByHue().get(hue); in getAnalogousColors()
246 double hue = MathUtils.sanitizeDegreesDouble(Math.toDegrees(Math.atan2(lab[2], lab[1]))); in rawTemperature() local
251 * Math.cos(Math.toRadians(MathUtils.sanitizeDegreesDouble(hue - 50.))); in rawTemperature()
269 for (double hue = 0.; hue <= 360.; hue += 1.) { in getHctsByHue()
[all …]
/external/perfetto/ui/src/frontend/
Dhsluv_cache.ts20 get(hue: number, saturation: number, lightness: number): string {
21 const key = hue * 1e6 + saturation * 1e3 + lightness;
25 const computed = hsluvToHex([hue, saturation, lightness]);
37 hue: number, saturation: number, lightness: number): string {
38 return cache.get(hue, saturation, lightness);
Dflow_events_renderer.ts182 hue: number) {
228 this.drawFlowArrow(ctx, begin, end, hue, intensity, width);
264 end: {x: number, y: number, dir: LineDirection}, hue: number,
271 const color = `hsl(${hue}, 50%, ${intensity}%)`;
/external/python/cpython3/Lib/
Dcolorsys.py109 def _v(m1, m2, hue): argument
110 hue = hue % 1.0
111 if hue < ONE_SIXTH:
112 return m1 + (m2-m1)*hue*6.0
113 if hue < 0.5:
115 if hue < TWO_THIRD:
116 return m1 + (m2-m1)*(TWO_THIRD-hue)*6.0
/external/python/cpython2/Lib/
Dcolorsys.py100 def _v(m1, m2, hue): argument
101 hue = hue % 1.0
102 if hue < ONE_SIXTH:
103 return m1 + (m2-m1)*hue*6.0
104 if hue < 0.5:
106 if hue < TWO_THIRD:
107 return m1 + (m2-m1)*(TWO_THIRD-hue)*6.0
/external/ImageMagick/Magick++/lib/
DColor.cpp628 void Magick::ColorHSL::hue(const double hue_) in hue() function in Magick::ColorHSL
631 hue, in hue() local
640 ConvertRGBToHSL(quantumRed(),quantumGreen(),quantumBlue(),&hue,&saturation, in hue()
643 hue=hue_; in hue()
645 ConvertHSLToRGB(hue,saturation,lightness,&red,&green,&blue); in hue()
652 double Magick::ColorHSL::hue(void) const in hue() function in Magick::ColorHSL
655 hue, in hue() local
659 ConvertRGBToHSL(quantumRed(),quantumGreen(),quantumBlue(),&hue,&saturation, in hue()
662 return(hue); in hue()
668 hue, in lightness() local
[all …]
/external/perfetto/ui/src/common/
Dcolorizer.ts147 const hue = Math.floor(Math.random() * 40) * 9; constant
148 return '#' + hsl.hex([hue, 90, 30]);
162 const hue = hash(sliceName, 360); constant
167 return [hue, saturation, lightness];
172 hue: number,
180 return cachedHsluvToHex(hue, saturation, newLightness);
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_AdjustHue.pbtxt12 A float delta to add to the hue.
18 The hue-adjusted image or images.
21 summary: "Adjust the hue of one or more images."
27 colors are first mapped into HSV. A delta is then applied all the hue values,
Dapi_def_RGBToHSV.pbtxt21 `output[..., 0]` contains hue, `output[..., 1]` contains saturation, and
22 `output[..., 2]` contains value. All HSV values are in `[0,1]`. A hue of 0
23 corresponds to pure red, hue 1/3 is pure green, and 2/3 is pure blue.
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dimage_ops.cc64 auto hue = in RGBToHSV() local
70 hue = xla::Select(xla::Eq(red, value), xla::Mul(norm, xla::Sub(green, blue)), in RGBToHSV()
71 hue); in RGBToHSV()
72 hue = xla::Select(xla::Gt(range, zero), hue, zeros); in RGBToHSV()
73 hue = xla::Select(xla::Lt(hue, zero), xla::Add(hue, one), hue); in RGBToHSV()
74 return {hue, saturation, value}; in RGBToHSV()
81 xla::XlaOp hue = hsv[0]; in HSVToRGB() local
91 auto dh = xla::Mul(hue, six); in HSVToRGB()
159 xla::XlaOp hue = xla::SliceInDim(input, /*start_index=*/0, in Compile() local
169 auto rgb = HSVToRGB(context->builder(), {hue, saturation, value}, in Compile()
[all …]
/external/ImageMagick/tests/
Dvalidate.c90 static void ConvertHSIToRGB(const double hue,const double saturation, in ConvertHSIToRGB() argument
96 h=360.0*hue; in ConvertHSIToRGB()
128 const double blue,double *hue,double *saturation,double *intensity) in ConvertRGBToHSI() argument
137 *hue=0.0; in ConvertRGBToHSI()
145 *hue=atan2(beta,alpha)*(180.0/MagickPI)/360.0; in ConvertRGBToHSI()
146 if (*hue < 0.0) in ConvertRGBToHSI()
147 *hue+=1.0; in ConvertRGBToHSI()
150 static void ConvertHSVToRGB(const double hue,const double saturation, in ConvertHSVToRGB() argument
159 h=hue*360.0; in ConvertHSVToRGB()
359 const double hue,double *X,double *Y,double *Z) in ConvertLCHabToXYZ() argument
[all …]
/external/ImageMagick/coders/
Dsixel.c149 static int hue_to_rgb(int n1, int n2, int hue) in hue_to_rgb() argument
153 if (hue < 0) { in hue_to_rgb()
154 hue += HLSMAX; in hue_to_rgb()
157 if (hue > HLSMAX) { in hue_to_rgb()
158 hue -= HLSMAX; in hue_to_rgb()
161 if (hue < (HLSMAX / 6)) { in hue_to_rgb()
162 return (n1 + (((n2 - n1) * hue + (HLSMAX / 12)) / (HLSMAX / 6))); in hue_to_rgb()
164 if (hue < (HLSMAX / 2)) { in hue_to_rgb()
167 if (hue < ((HLSMAX * 2) / 3)) { in hue_to_rgb()
168 return (n1 + (((n2 - n1) * (((HLSMAX * 2) / 3) - hue) + (HLSMAX / 12))/(HLSMAX / 6))); in hue_to_rgb()
[all …]
/external/dng_sdk/source/
Ddng_camera_profile.cpp379 for (uint32 hue = 0; hue < hues; hue++) in FingerprintHueSatMap() local
385 map.GetDelta (hue, sat, val, modify); in FingerprintHueSatMap()
878 for (uint32 hue = 0; hue < hues; hue++) in ReadHueSatMap() local
890 hueSatMap.SetDelta (hue, sat, val, modify); in ReadHueSatMap()
/external/skia/src/shaders/gradients/
DSkGradientShaderBase.cpp762 skvm::F32 hue = color.r; in program() local
764 color.r = hue; in program()
870 float hue = 0, sat = 0, light = (mn + mx) / 2; in srgb_to_hsl() local
876 hue = (rgb.fG - rgb.fB) / d + (rgb.fG < rgb.fB ? 6 : 0); in srgb_to_hsl()
878 hue = (rgb.fB - rgb.fR) / d + 2; in srgb_to_hsl()
880 hue = (rgb.fR - rgb.fG) / d + 4; in srgb_to_hsl()
883 hue *= 60; in srgb_to_hsl()
885 return { hue, sat * 100, light * 100, rgb.fA }; in srgb_to_hsl()
914 float hue = sk_float_radians_to_degrees(atan2f(Lab[2], Lab[1])); in xyzd50_to_hcl() local
915 return {hue >= 0 ? hue : hue + 360, in xyzd50_to_hcl()
[all …]
/external/perfetto/ui/src/tracks/counter/
Dindex.ts369 const hue = (180 - Math.floor(expCapped * (180 / 6)) + 360) % 360; constant
371 ctx.fillStyle = `hsl(${hue}, 45%, 75%)`;
372 ctx.strokeStyle = `hsl(${hue}, 45%, 45%)`;
409 ctx.strokeStyle = `hsl(${hue}, 10%, 71%)`;
433 ctx.fillStyle = `hsl(${hue}, 45%, 75%)`;
434 ctx.strokeStyle = `hsl(${hue}, 45%, 45%)`;
/external/perfetto/ui/src/tracks/cpu_freq/
Dindex.ts327 const hue = hueForCpu(this.config.cpu); constant
332 ctx.fillStyle = `hsl(${hue}, ${saturation}%, 70%)`;
333 ctx.strokeStyle = `hsl(${hue}, ${saturation}%, 55%)`;
410 ctx.fillStyle = `hsl(${hue}, 45%, 75%)`;
411 ctx.strokeStyle = `hsl(${hue}, 45%, 45%)`;
/external/libpng/contrib/gregbook/
Drpng2-x.c1230 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t; in rpng2_x_load_bg_image() local
1267 hue = (angle + PI) * INV_PI_360 + aoffset; in rpng2_x_load_bg_image()
1278 if ((hue < 0.0) || (hue >= 360.0)) in rpng2_x_load_bg_image()
1279 hue -= (((int)(hue / 360.0)) * 360.0); in rpng2_x_load_bg_image()
1280 hue /= 60.0; in rpng2_x_load_bg_image()
1281 ii = (int)hue; in rpng2_x_load_bg_image()
1282 f = hue - (double)ii; in rpng2_x_load_bg_image()
2002 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t; in rpng2_x_reload_bg_image() local
2035 hue = (angle + PI) * INV_PI_360 + aoffset; in rpng2_x_reload_bg_image()
2046 if ((hue < 0.0) || (hue >= 360.0)) in rpng2_x_reload_bg_image()
[all …]
/external/perfetto/ui/src/tracks/chrome_slices/
Dindex.ts272 const [hue, saturation, lightness] = hslForSlice(name, hasFocus); constant
276 color = cachedHsluvToHex(hue, saturation, lightness);
299 ctx.fillStyle = cachedHsluvToHex(hue, 100, 10);
330 colorForThreadIdleSlice(hue, saturation, lightness, hasFocus);
343 ctx.strokeStyle = cachedHsluvToHex(hue, 100, 10);

1234