Lines Matching refs:from

26  * Copied from: frameworks/support/core-utils/java/android/support/v4/graphics/ColorUtils.java
76 @FloatRange(from = 0.0, to = 1.0)
214 public static void RGBToHSL(@IntRange(from = 0x0, to = 0xFF) int r,
215 @IntRange(from = 0x0, to = 0xFF) int g, @IntRange(from = 0x0, to = 0xFF) int b,
340 @IntRange(from = 0x0, to = 0xFF) int alpha) {
371 public static void RGBToLAB(@IntRange(from = 0x0, to = 0xFF) int r,
372 @IntRange(from = 0x0, to = 0xFF) int g, @IntRange(from = 0x0, to = 0xFF) int b,
417 public static void RGBToXYZ(@IntRange(from = 0x0, to = 0xFF) int r,
418 @IntRange(from = 0x0, to = 0xFF) int g, @IntRange(from = 0x0, to = 0xFF) int b,
437 * Converts a color from CIE XYZ to CIE Lab representation.
453 public static void XYZToLAB(@FloatRange(from = 0f, to = XYZ_WHITE_REFERENCE_X) double x,
454 @FloatRange(from = 0f, to = XYZ_WHITE_REFERENCE_Y) double y,
455 @FloatRange(from = 0f, to = XYZ_WHITE_REFERENCE_Z) double z,
469 * Converts a color from CIE Lab to CIE XYZ representation.
485 public static void LABToXYZ(@FloatRange(from = 0f, to = 100) final double l,
486 @FloatRange(from = -128, to = 127) final double a,
487 @FloatRange(from = -128, to = 127) final double b,
506 * Converts a color from CIE XYZ to its RGB representation.
517 public static int XYZToColor(@FloatRange(from = 0f, to = XYZ_WHITE_REFERENCE_X) double x,
518 @FloatRange(from = 0f, to = XYZ_WHITE_REFERENCE_Y) double y,
519 @FloatRange(from = 0f, to = XYZ_WHITE_REFERENCE_Z) double z) {
535 * Converts a color from CIE Lab to its RGB representation.
543 public static int LABToColor(@FloatRange(from = 0f, to = 100) final double l,
544 @FloatRange(from = -128, to = 127) final double a,
545 @FloatRange(from = -128, to = 127) final double b) {
586 @FloatRange(from = 0.0, to = 1.0) float ratio) {
608 @FloatRange(from = 0.0, to = 1.0) float ratio, @NonNull float[] outResult) {
631 @FloatRange(from = 0.0, to = 1.0) double ratio, @NonNull double[] outResult) {