A color value as HSV (Hue, Saturation and Value)
Inheritance: EtsyColor
Example #1
0
 public void HsvColorStringCreateTest()
 {
     HsvColor color = new HsvColor("34;45;67");
     Assert.IsNotNull(color);
     Assert.AreEqual(34, color.Hue);
     Assert.AreEqual(45, color.Saturation);
     Assert.AreEqual(67, color.Value);
 }
Example #2
0
 public void HsvColorNumericCreateTest()
 {
     HsvColor color = new HsvColor(34, 45, 67);
     Assert.IsNotNull(color);
     Assert.AreEqual(34, color.Hue);
     Assert.AreEqual(45, color.Saturation);
     Assert.AreEqual(67, color.Value);
 }