A color value as HSV (Hue, Saturation and Value)
Наследование: EtsyColor
Пример #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);
 }
Пример #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);
 }