Searched refs:background_luminance (Results 1 – 3 of 3) sorted by relevance
64 double ContrastRatio(double foreground_luminance, double background_luminance) { in ContrastRatio() argument66 DCHECK_GE(background_luminance, 0.0); in ContrastRatio()68 background_luminance += 0.05; in ContrastRatio()69 return (foreground_luminance > background_luminance) ? in ContrastRatio()70 (foreground_luminance / background_luminance) : in ContrastRatio()71 (background_luminance / foreground_luminance); in ContrastRatio()269 unsigned char background_luminance = in BlendTowardOppositeLuminance() local272 (background_luminance < 128) ? SK_ColorWHITE : SK_ColorBLACK; in BlendTowardOppositeLuminance()278 const double background_luminance = RelativeLuminance(background); in GetReadableColor() local279 return (ContrastRatio(RelativeLuminance(foreground), background_luminance) >= in GetReadableColor()[all …]
31 int background_luminance = color_utils::GetLuminanceForColor( in UpdateInvertedColorScheme() local38 foreground_luminance > background_luminance; in UpdateInvertedColorScheme()
673 int background_luminance = in OnPaint() local676 7 + 15 * (255 - background_luminance) / 255); in OnPaint()678 10 + 20 * (255 - background_luminance) / 255); in OnPaint()