Home
last modified time | relevance | path

Searched refs:inverseRatio (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java621 final float inverseRatio = 1 - ratio; in blendARGB() local
622 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; in blendARGB()
623 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; in blendARGB()
624 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; in blendARGB()
625 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio; in blendARGB()
646 final float inverseRatio = 1 - ratio; in blendHSL() local
649 outResult[1] = hsl1[1] * inverseRatio + hsl2[1] * ratio; in blendHSL()
650 outResult[2] = hsl1[2] * inverseRatio + hsl2[2] * ratio; in blendHSL()
669 final double inverseRatio = 1 - ratio; in blendLAB() local
670 outResult[0] = lab1[0] * inverseRatio + lab2[0] * ratio; in blendLAB()
[all …]