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.java587 final float inverseRatio = 1 - ratio; in blendARGB() local
588 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; in blendARGB()
589 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; in blendARGB()
590 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; in blendARGB()
591 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio; in blendARGB()
612 final float inverseRatio = 1 - ratio; in blendHSL() local
615 outResult[1] = hsl1[1] * inverseRatio + hsl2[1] * ratio; in blendHSL()
616 outResult[2] = hsl1[2] * inverseRatio + hsl2[2] * ratio; in blendHSL()
635 final double inverseRatio = 1 - ratio; in blendLAB() local
636 outResult[0] = lab1[0] * inverseRatio + lab2[0] * ratio; in blendLAB()
[all …]