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.java618 final float inverseRatio = 1 - ratio; in blendARGB() local
619 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; in blendARGB()
620 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; in blendARGB()
621 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; in blendARGB()
622 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio; in blendARGB()
643 final float inverseRatio = 1 - ratio; in blendHSL() local
646 outResult[1] = hsl1[1] * inverseRatio + hsl2[1] * ratio; in blendHSL()
647 outResult[2] = hsl1[2] * inverseRatio + hsl2[2] * ratio; in blendHSL()
666 final double inverseRatio = 1 - ratio; in blendLAB() local
667 outResult[0] = lab1[0] * inverseRatio + lab2[0] * ratio; in blendLAB()
[all …]