public SRGBColour(ColourVector v, ByteColourComponent a) { _r = v.X; _g = v.Y; _b = v.Z; _a = a; }
public SRGBColour(ByteColourComponent r, ByteColourComponent g, ByteColourComponent b) { _r = r; _g = g; _b = b; _a = 255; }
public SRGBColour(ByteColourComponent r, ByteColourComponent g, ByteColourComponent b, ByteColourComponent a) { _r = r; _g = g; _b = b; _a = a; }
public static UnitColourComponent ToUnitColour(this ByteColourComponent colourComp) => new UnitColourComponent((ColourPrimitive)colourComp.Value / (ColourPrimitive)ByteColourComponent.MaxValue);