/* A 25-color palette based on Anton Tsitsulin's 12-color palette
 * Adapted by Arthurits: https://github.com/ScottPlot/ScottPlot/pull/1318
 * http://tsitsul.in/blog/coloropt
 * https://github.com/xgfs/coloropt
 */

namespace ScottPlot.Palettes;

public class Tsitsulin : IPalette
{
    public string Name { get; } = "Xgfs 25";

    public string Description { get; } = "A 25-color palette by Arthurits " +
        "adapted from Tsitsulin's 12-color xgfs palette: http://tsitsul.in/blog/coloropt";

    public System.Drawing.Color[] Colors { get; } = HexColors.Select(System.Drawing.ColorTranslator.FromHtml).ToArray();

    private static readonly string[] HexColors =
    {
        "#ebac23", "#b80058", "#008cf9", "#006e00", "#00bbad",
        "#d163e6", "#b24502", "#ff9287", "#5954d6", "#00c6f8",
        "#878500", "#00a76c",
        "#f6da9c", "#ff5caa", "#8accff", "#4bff4b", "#6efff4",
        "#edc1f5", "#feae7c", "#ffc8c3", "#bdbbef", "#bdf2ff",
        "#fffc43", "#65ffc8",
        "#aaaaaa",
    };
}
