public static Color ToBrightened(this Color source, float factor) { if (factor <= 0F) { throw new ArgumentOutOfRangeException(nameof(factor)); } var bridgeColor = HsbColor.FromArgb(source); bridgeColor.B = Min(1F, bridgeColor.B * factor); return(bridgeColor.ToArgb()); }
public static HsbColor ToAhsb(this Color source) { return(HsbColor.FromArgb(source)); }
public static HsbColor ToAhsb(this Color source) => HsbColor.FromArgb(source);