コード例 #1
0
 public SRGBColour(ColourVector v, ByteColourComponent a)
 {
     _r = v.X;
     _g = v.Y;
     _b = v.Z;
     _a = a;
 }
コード例 #2
0
 public SRGBColour(ByteColourComponent r, ByteColourComponent g, ByteColourComponent b)
 {
     _r = r;
     _g = g;
     _b = b;
     _a = 255;
 }
コード例 #3
0
 public SRGBColour(ByteColourComponent r, ByteColourComponent g, ByteColourComponent b, ByteColourComponent a)
 {
     _r = r;
     _g = g;
     _b = b;
     _a = a;
 }
コード例 #4
0
 public static UnitColourComponent ToUnitColour(this ByteColourComponent colourComp) => new UnitColourComponent((ColourPrimitive)colourComp.Value / (ColourPrimitive)ByteColourComponent.MaxValue);