internal Color TransformHueColor(Color hueColor) { HLSColor hLSColor = new HLSColor(hueColor.R, hueColor.G, hueColor.B); float brightness = hueColor.GetBrightness(); return(Color.FromArgb(hueColor.A, hLSColor.Lighten(brightness))); }
public override bool Equals(object o) { if (o is HLSColor) { HLSColor hLSColor = (HLSColor)o; if (hue == hLSColor.hue && saturation == hLSColor.saturation && luminosity == hLSColor.luminosity) { return(true); } } return(false); }