Home
last modified time | relevance | path

Searched refs:chroma (Results 1 – 5 of 5) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/monet/src/com/android/systemui/monet/
H A DColorScheme.kt178 return sourceColor.chroma * multiple
184 return sourceColor.chroma + amount
201 return chroma
207 return sourceColor.chroma.toDouble()
214 val chroma = chroma.get(sourceColor) regex
220 val chroma = chroma.get(sourceColor) regex
342 val c = spec.chroma.get(seedCam).toFloat()
546 cam.chroma >= MIN_CHROMA &&
639 if (cam.chroma < ACCENT1_CHROMA) 0.1 * (cam.chroma - ACCENT1_CHROMA)
640 else 0.3 * (cam.chroma - ACCENT1_CHROMA)
[all …]
H A DShades.java54 public static @ColorInt int[] of(float hue, float chroma) { in of() argument
58 shades[0] = ColorUtils.CAMToColor(hue, Math.min(40f, chroma), 99); in of()
59 shades[1] = ColorUtils.CAMToColor(hue, Math.min(40f, chroma), 95); in of()
62 shades[i] = ColorUtils.CAMToColor(hue, chroma, lStar); in of()
/aosp14/frameworks/base/core/java/com/android/internal/graphics/cam/
H A DCam.java115 Cam(float hue, float chroma, float j, float q, float m, float s, float jstar, float astar, in Cam() argument
118 mChroma = chroma; in Cam()
134 public static int getInt(float hue, float chroma, float lstar) { in getInt() argument
135 return getInt(hue, chroma, lstar, Frame.DEFAULT); in getInt()
345 public static int getInt(float hue, float chroma, float lstar, @NonNull Frame frame) { in getInt() argument
393 return HctSolver.solveToInt(hue, chroma, lstar); in getInt()
396 if (chroma < 1.0 || Math.round(lstar) <= 0.0 || Math.round(lstar) >= 100.0) { in getInt()
403 float high = chroma; in getInt()
407 float mid = chroma; in getInt()
461 private static Cam findCamByJ(float hue, float chroma, float lstar) { in findCamByJ() argument
[all …]
H A DHctSolver.java606 static int findResultByJ(double hueRadians, double chroma, double y) { in findResultByJ() argument
624 double alpha = chroma == 0.0 || j == 0.0 ? 0.0 : chroma / Math.sqrt(jNormalized); in findResultByJ()
681 public static int solveToInt(double hueDegrees, double chroma, double lstar) { in solveToInt() argument
682 if (chroma < 0.0001 || lstar < 0.0001 || lstar > 99.9999) { in solveToInt()
688 int exactAnswer = findResultByJ(hueRadians, chroma, y); in solveToInt()
718 public static Cam solveToCam(double hueDegrees, double chroma, double lstar) { in solveToCam() argument
719 return Cam.fromInt(solveToInt(hueDegrees, chroma, lstar)); in solveToCam()
/aosp14/frameworks/base/core/java/com/android/internal/graphics/
H A DColorUtils.java365 public static int CAMToColor(float hue, float chroma, float lstar) { in CAMToColor() argument
366 return Cam.getInt(hue, chroma, lstar); in CAMToColor()