Home
last modified time | relevance | path

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

/frameworks/support/v4/java/android/support/v4/graphics/
DColorUtils.java543 final float inverseRatio = 1 - ratio; in blendARGB() local
544 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; in blendARGB()
545 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; in blendARGB()
546 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; in blendARGB()
547 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio; in blendARGB()
568 final float inverseRatio = 1 - ratio; in blendHSL() local
571 outResult[1] = hsl1[1] * inverseRatio + hsl2[1] * ratio; in blendHSL()
572 outResult[2] = hsl1[2] * inverseRatio + hsl2[2] * ratio; in blendHSL()
591 final double inverseRatio = 1 - ratio; in blendLAB() local
592 outResult[0] = lab1[0] * inverseRatio + lab2[0] * ratio; in blendLAB()
[all …]
/frameworks/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java646 final float inverseRatio = 1f - ratio; in blendColors() local
647 float a = (Color.alpha(color1) * inverseRatio) + (Color.alpha(color2) * ratio); in blendColors()
648 float r = (Color.red(color1) * inverseRatio) + (Color.red(color2) * ratio); in blendColors()
649 float g = (Color.green(color1) * inverseRatio) + (Color.green(color2) * ratio); in blendColors()
650 float b = (Color.blue(color1) * inverseRatio) + (Color.blue(color2) * ratio); in blendColors()