4namespace XXSharpKmyGfx{
5 private value class Color
10 Color(
float _r,
float _g,
float _b,
float _a)
18 Color(Color c,
float _a)
26 Color(
byte _r,
byte _g,
byte _b)
34 kmyGfx::Color toNativeColor()
36 return kmyGfx::Color(r, g, b, a);
39 static property Color White{
42 return Color(1, 1, 1, 1);
46 static Color fromByte(
byte _r,
byte _g,
byte _b,
byte _a)
48 return Color(_r / 255.0f, _g / 255.0f, _b / 255.0f, _a / 255.0f);
51 static property Color Gray{
54 return Color(0.5f,0.5f,0.5f, 1);
58 static property Color Red{
61 return Color(1, 0, 0, 1);