16 instantiations of HLSColor
System.Windows.Forms (16)
System\Windows\Forms\Rendering\ControlPaint.cs (16)
371public static Color Dark(Color baseColor, float percOfDarkDark) => new HLSColor(baseColor).Darker(percOfDarkDark); 376public static Color Dark(Color baseColor) => new HLSColor(baseColor).Darker(0.5f); 381public static Color DarkDark(Color baseColor) => new HLSColor(baseColor).Darker(1.0f); 388internal static bool IsDarker(Color c1, Color c2) => new HLSColor(c1).Luminosity < new HLSColor(c2).Luminosity; 748HLSColor hlsColor = new(topColor); 807HLSColor hlsColor = new(leftColor); 876HLSColor hlsColor = new(bottomColor); 950HLSColor hlsColor = new(rightColor); 1062HLSColor hls = new(color); 1101HLSColor hls = new(color); 2266=> new HLSColor(baseColor).Lighter(percOfLightLight); 2271public static Color Light(Color baseColor) => new HLSColor(baseColor).Lighter(0.5f); 2276public static Color LightLight(Color baseColor) => new HLSColor(baseColor).Lighter(1.0f); 2410HLSColor backgroundColorWrapper = new(backgroundColor); 2419HLSColor pixelColorWrapper = new(pixel);
15 references to HLSColor
System.Windows.Forms (15)
System\Windows\Forms\Rendering\ControlPaint.cs (8)
748HLSColor hlsColor = new(topColor); 807HLSColor hlsColor = new(leftColor); 876HLSColor hlsColor = new(bottomColor); 950HLSColor hlsColor = new(rightColor); 1062HLSColor hls = new(color); 1101HLSColor hls = new(color); 2410HLSColor backgroundColorWrapper = new(backgroundColor); 2419HLSColor pixelColorWrapper = new(pixel);
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (7)
13private readonly struct HLSColor : IEquatable<HLSColor> 124if (o is not HLSColor hlsColor) 132public bool Equals(HLSColor other) 140public static bool operator ==(HLSColor a, HLSColor b) => a.Equals(b); 142public static bool operator !=(HLSColor a, HLSColor b) => !a.Equals(b);