Home | History | Annotate | Download | only in graphics

Lines Matching defs:ColorUtils

27 import android.support.v4.graphics.ColorUtils;
161 ColorUtils.calculateContrast(colorOld, bg),
162 ColorUtils.calculateContrast(colorNew, bg));
186 if (ColorUtils.calculateContrast(fg, bg) >= minRatio) {
191 ColorUtils.colorToLAB(bg, lab);
193 ColorUtils.colorToLAB(fg, lab);
201 fg = ColorUtils.LABToColor(l, a, b);
202 if (ColorUtils.calculateContrast(fg, bg) > minRatio) {
208 return ColorUtils.LABToColor(low, a, b);
212 int whiteScrim = ColorUtils.setAlphaComponent(Color.WHITE, (int) (255 * whiteScrimAlpha));
213 return ColorUtils.compositeColors(whiteScrim, color);
225 int whiteMinAlpha = ColorUtils.calculateMinimumAlpha(Color.WHITE, color, contrastRatio);
226 int blackMinAlpha = ColorUtils.calculateMinimumAlpha(Color.BLACK, color, contrastRatio);
229 translucentWhiteOrBlack = ColorUtils.setAlphaComponent(Color.WHITE, whiteMinAlpha);
231 translucentWhiteOrBlack = ColorUtils.setAlphaComponent(Color.BLACK, blackMinAlpha);
235 return ColorUtils.compositeColors(translucentWhiteOrBlack, color);