Lines Matching refs:outHsl
160 * <li>outHsl[0] is Hue [0 .. 360)</li>
161 * <li>outHsl[1] is Saturation [0...1]</li>
162 * <li>outHsl[2] is Lightness [0...1]</li>
168 * @param outHsl 3-element array which holds the resulting HSL components
172 @NonNull float[] outHsl) {
204 outHsl[0] = constrain(h, 0f, 360f);
205 outHsl[1] = constrain(s, 0f, 1f);
206 outHsl[2] = constrain(l, 0f, 1f);
212 * <li>outHsl[0] is Hue [0 .. 360)</li>
213 * <li>outHsl[1] is Saturation [0...1]</li>
214 * <li>outHsl[2] is Lightness [0...1]</li>
218 * @param outHsl 3-element array which holds the resulting HSL components
220 public static void colorToHSL(@ColorInt int color, @NonNull float[] outHsl) {
221 RGBToHSL(Color.red(color), Color.green(color), Color.blue(color), outHsl);