/** * Return this swatch's HSL values. * hsv[0] is Hue [0 .. 360) * hsv[1] is Saturation [0...1] * hsv[2] is Lightness [0...1] */ public float[] getHsl() { if (mHsl == null) { // Lazily generate HSL values from RGB mHsl = new float[3]; ColorUtils.RGBtoHSL(mRed, mGreen, mBlue, mHsl); } return(mHsl); }
private Boolean shouldIgnoreColor(Color color) { ColorUtils.RGBtoHSL(color.R, color.G, color.B, mTempHsl); return(shouldIgnoreColor(mTempHsl)); }