Exemplo n.º 1
0
        public static Color FromString(string color)
        {
            switch (color)
            {
            case ("WHITE"):
                return(Color.white);

            case ("ALABASTER_RED"):
                return(ColorExt.Hex("C4302B"));

            case ("RED"):
                return(ColorExt.RedBright(1f));

            case ("GREEN"):
                return(ColorExt.GreenBright(1f));

            case ("BLUE"):
                return(Color.blue);

            case ("CYAN"):
                return(Color.cyan);

            case ("YELLOW"):
                return(Color.yellow);

            case ("PINK"):
                return(ColorExt.Pink(1f));

            case ("MAGENTA"):
                return(Color.magenta);

            case ("ORANGE"):
                return(ColorExt.OrangeBright(1f));

            case ("BLACK"):
                return(Color.black);

            default:
                return(Color.white);
            }
        }