Esempio n. 1
0
 /// <summary>
 /// Toes the color of the HSB.
 /// </summary>
 /// <param name="color">The color.</param>
 /// <returns></returns>
 public static HSBColor ToHSBColor(Color color)
 {
     return(HSBColor.FromColor(color));
 }
Esempio n. 2
0
 /// <summary>
 /// Toes the color of the HSB.
 /// </summary>
 /// <param name="HTMLColor">Color of the HTML.</param>
 /// <returns></returns>
 public static HSBColor ToHSBColor(string HTMLColor)
 {
     return(HSBColor.FromColor(ToColor(HTMLColor)));
 }
Esempio n. 3
0
 /// <summary>
 /// Toes the color of the HTML.
 /// </summary>
 /// <param name="hsbColor">Color of the HSB.</param>
 /// <returns></returns>
 public static string ToHTMLColor(HSBColor hsbColor)
 {
     return(ToHTMLColor(HSBColor.FromHSB(hsbColor)));
 }
Esempio n. 4
0
 /// <summary>
 /// Toes the color.
 /// </summary>
 /// <param name="hsbColor">Color of the HSB.</param>
 /// <returns></returns>
 public static Color ToColor(HSBColor hsbColor)
 {
     return(hsbColor.Color);
 }
Esempio n. 5
0
 public static Color FromHSB(HSBColor hsbColor)
 {
     return(FromHSB(hsbColor.h, hsbColor.s, hsbColor.b));
 }