Searched defs:hsl (Results 1 - 4 of 4) sorted by relevance
/frameworks/support/v4/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 151 * <li>hsl[0] is Hue [0 .. 360)</li> 152 * <li>hsl[1] is Saturation [0...1]</li> 153 * <li>hsl[2] is Lightness [0...1]</li> 159 * @param hsl 3 element array which holds the resulting HSL components. 161 public static void RGBToHSL(int r, int g, int b, float[] hsl) { argument 193 hsl[0] = constrain(h, 0f, 360f); 194 hsl[1] = constrain(s, 0f, 1f); 195 hsl[2] = constrain(l, 0f, 1f); 201 * <li>hsl[0] is Hue [0 .. 360)</li> 202 * <li>hsl[ 209 colorToHSL(int color, float[] hsl) argument 225 HSLToColor(float[] hsl) argument [all...] |
/frameworks/support/v4/tests/java/android/support/v4/graphics/ |
H A D | ColorUtilsTest.java | 53 testColorToHSL(entry.rgb, entry.hsl); 59 testHSLToColor(entry.hsl, entry.rgb); 64 final float[] hsl = new float[3]; 67 ColorUtils.colorToHSL(entry.rgb, hsl); 69 assertTrue(hsl[0] >= 0f && hsl[0] <= 360f); 70 assertTrue(hsl[1] >= 0f && hsl[1] <= 1f); 71 assertTrue(hsl[2] >= 0f && hsl[ 103 testHSLToColor(float[] hsl, int expectedRgb) argument 116 final float[] hsl = new float[3]; field in class:ColorUtilsTest.TestEntry [all...] |
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | ColorCutQuantizer.java | 438 private boolean shouldIgnoreColor(int rgb, float[] hsl) { argument 441 if (!mFilters[i].isAllowed(rgb, hsl)) {
|
H A D | Palette.java | 697 * @param hsl HSL representation of the color. 703 boolean isAllowed(int rgb, float[] hsl); argument 714 public boolean isAllowed(int rgb, float[] hsl) { 715 return !isWhite(hsl) && !isBlack(hsl) && !isNearRedILine(hsl);
|
Completed in 70 milliseconds