示例#1
0
        /// <summary>
        /// Colors the with string.
        /// </summary>
        /// <param name="colorString">
        /// The color string.
        /// </param>
        /// <returns>
        /// The <see cref="AureaColor"/>.
        /// </returns>
        public static AureaColor ColorWithString(string colorString)
        {
            var color = ColorDictionary.ValueOrDefault(colorString);

            if (color == null)
            {
                color = new AureaColor(colorString);
                colors[colorString] = color;
            }

            return(color);
        }