public static Color HighContrast(this Color color) { float h, s, v; HierarchyProColorHelpers.RGBToHSV(color, out h, out s, out v); return(v > 0.5f ? Color.black : Color.white); }
public ColorSet(Color color) { this.main = color; float h, s, v; HierarchyProColorHelpers.RGBToHSV(color, out h, out s, out v); this.pastel = HierarchyProColorHelpers.HSVToRGB(h, 0.25f, 1); this.faint = HierarchyProColorHelpers.HSVToRGB(h, 0.5f, 1); }