Searched refs:fromColor (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/libs/hwui/ |
D | PropertyValuesHolder.cpp | 38 void ColorEvaluator::evaluate(SkColor* outColor, const SkColor& fromColor, const SkColor& toColor, in evaluate() argument 40 float a = lerp(SkColorGetA(fromColor) / 255.0f, SkColorGetA(toColor) / 255.0f, fraction); in evaluate() 41 float r = lerp(linearize(SkColorGetR(fromColor)), linearize(SkColorGetR(toColor)), fraction); in evaluate() 42 float g = lerp(linearize(SkColorGetG(fromColor)), linearize(SkColorGetG(toColor)), fraction); in evaluate() 43 float b = lerp(linearize(SkColorGetB(fromColor)), linearize(SkColorGetB(toColor)), fraction); in evaluate()
|
D | PropertyValuesHolder.h | 112 static SkColor interpolateColors(SkColor fromColor, SkColor toColor, float fraction);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSIconViewImpl.java | 183 private void animateGrayScale(int fromColor, int toColor, ImageView iv, in animateGrayScale() argument 190 final float fromAlpha = Color.alpha(fromColor); in animateGrayScale() 192 final float fromChannel = Color.red(fromColor); in animateGrayScale()
|