Searched refs:hsl1 (Results 1 - 2 of 2) sorted by relevance
/frameworks/base/core/java/com/android/internal/graphics/ |
H A D | ColorUtils.java | 553 * Blend between {@code hsl1} and {@code hsl2} using the given ratio. This will interpolate 556 * <p>A blend ratio of 0.0 will result in {@code hsl1}, 0.5 will give an even blend, 559 * @param hsl1 3-element array which holds the first HSL color 561 * @param ratio the blend ratio of {@code hsl1} to {@code hsl2} 564 public static void blendHSL(@NonNull float[] hsl1, @NonNull float[] hsl2, argument 571 outResult[0] = circularInterpolate(hsl1[0], hsl2[0], ratio); 572 outResult[1] = hsl1[1] * inverseRatio + hsl2[1] * ratio; 573 outResult[2] = hsl1[2] * inverseRatio + hsl2[2] * ratio;
|
/frameworks/support/core-utils/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 552 * Blend between {@code hsl1} and {@code hsl2} using the given ratio. This will interpolate 555 * <p>A blend ratio of 0.0 will result in {@code hsl1}, 0.5 will give an even blend, 558 * @param hsl1 3-element array which holds the first HSL color 560 * @param ratio the blend ratio of {@code hsl1} to {@code hsl2} 563 public static void blendHSL(@NonNull float[] hsl1, @NonNull float[] hsl2, argument 570 outResult[0] = circularInterpolate(hsl1[0], hsl2[0], ratio); 571 outResult[1] = hsl1[1] * inverseRatio + hsl2[1] * ratio; 572 outResult[2] = hsl1[2] * inverseRatio + hsl2[2] * ratio;
|
Completed in 1006 milliseconds