public static AnyColor Srgb(SrgbColor c) => new AnyColor { kind = ColorKind.Srgb, srgb = c };
/// <summary> /// Parses color in RGB, RGBA, RRGGBB or RRGGBBAA format /// </summary> /// <param name="hex"></param> /// <returns></returns> public static AnyColor FromHexSrgb(string hex) => new AnyColor { kind = ColorKind.Srgb, srgb = SrgbColor.FromHex(hex) };