Home
last modified time | relevance | path

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

/frameworks/support/v4/java/android/support/v4/graphics/
DColorUtils.java541 public static int blendARGB(@ColorInt int color1, @ColorInt int color2, in blendARGB() argument
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()
/frameworks/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java645 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
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()
/frameworks/support/v4/java/android/support/v4/widget/
DSwipeProgressBar.java88 void setColorScheme(int color1, int color2, int color3, int color4) { in setColorScheme() argument
90 mColor2 = color2; in setColorScheme()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DMultiProducerActivity.java283 public ColorPulse(int color1, int color2, Rect rect) { in ColorPulse() argument
285 mColorEnd = color2; in ColorPulse()
/frameworks/rs/api/
Drs_math.spec1700 40% color1 and 60% color2, use <code>mix(color1, color2, 0.6f)</code>.
/frameworks/rs/scriptc/
Drs_math.rsh3552 * 40% color1 and 60% color2, use mix(color1, color2, 0.6f).
/frameworks/base/docs/html/guide/topics/renderscript/reference/
Drs_math.jd4425 40% color1 and 60% color2, use <code>mix(color1, color2, 0.6f)</code>.