Provides extension methods for Color.
public static class ColorExtensionsInheritance System.Object → ColorExtensions
Gets a weighted variation of a CSS base color.
public static ConsolePlusLibrary.Color Weighted(this ConsolePlusLibrary.Color color, int weight);color Color
Base color instance (must map to a CSS named color).
weight System.Int32
Weight in the range 0-1000. The value is mapped to the nearest proportional weighted step. Values greater than or equal to 1000 return the original color.
Color
The weighted variation, or the original color if weight is out of range.