Beispiel #1
0
 public HSVColour(DegreeColourComponent h, UnitColourComponent s, UnitColourComponent v, UnitColourComponent a)
 {
     _h = h;
     _s = s;
     _v = v;
     _a = a;
 }
Beispiel #2
0
 public HSLColour(DegreeColourComponent h, UnitColourComponent s, UnitColourComponent l, UnitColourComponent a)
 {
     _h = h;
     _s = s;
     _l = l;
     _a = a;
 }
Beispiel #3
0
 public HSVColour(DegreeColourComponent h, UnitColourComponent s, UnitColourComponent v)
 {
     _h = h;
     _s = s;
     _v = v;
     _a = ColourSpaceConstants.ONE;
 }
Beispiel #4
0
 public HSLColour(DegreeColourComponent h, UnitColourComponent s, UnitColourComponent l)
 {
     _h = h;
     _s = s;
     _l = l;
     _a = ColourSpaceConstants.ONE;
 }
 public static UnitColourComponent ToUnitColour(this DegreeColourComponent colourComp) => new UnitColourComponent(colourComp.Value / DegreeColourComponent.MaxValue);