public float[] GetHsl() { if (hsl == null) { // Lazily generate hsl values from RGB hsl = new float[3]; ColorUtils.RgbToHsl(red, green, blue, hsl); } return(hsl); }
private Boolean ShouldIgnoreColor(int color) { ColorUtils.RgbToHsl((color >> 16) & 0xff, (color >> 8) & 0xff, color & 0xff, tempHsl); return(ShouldIgnoreColor(tempHsl)); }