/// <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); }
/// <summary> /// Ups the color of the current system. /// </summary> /// <returns> /// The <see cref="AureaColor"/>. /// </returns> public static AureaColor UpCurrentSystemColor() { return(currentSystemAureaColor ?? (currentSystemAureaColor = new AureaColor(1.0, 1.0, 1.0))); }
/// <summary> /// Sets the color of the current system. /// </summary> /// <param name="color"> /// The color. /// </param> public static void SetCurrentSystemColor(AureaColor color) { currentSystemAureaColor = color; }