1 write to Luminosity
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (1)
42Luminosity = ((sum * HLSMax) + RGBMax) / (2 * RGBMax);
10 references to Luminosity
System.Windows.Forms (10)
System\Windows\Forms\Rendering\ControlPaint.cs (4)
388internal static bool IsDarker(Color c1, Color c2) => new HLSColor(c1).Luminosity < new HLSColor(c2).Luminosity; 2420if (Math.Abs(pixelColorWrapper.Luminosity - backgroundColorWrapper.Luminosity) > MaximumLuminosityDifference)
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (6)
54_saturation = Luminosity <= (HLSMax / 2) 136&& Luminosity == other.Luminosity 144public override int GetHashCode() => HashCode.Combine(_hue, _saturation, Luminosity); 173int zeroLum = Luminosity; 181return NewLuma(Luminosity, n, scale);