16 Color(
int 赤,
int 緑,
int 青 ,
int 透過率 = 255)
22 void SetColor(
int 赤,
int 緑,
int 青,
int 透過率 = 255)
25 data = (赤 << 16) + (緑 << 8) + 青;
28 data = { 赤, 緑, 青, 透過率 };
36 return (data >> 16) % 256;
46 return (data >> 8) % 256;
76 bool operator==(
Color 比較色) {
78 GetRed() == 比較色.GetRed() &&
81 GetAlpha() == 比較色.GetAlpha()
85 static const Color Black;
86 static const Color Dilver;
87 static const Color Gray;
88 static const Color White;
89 static const Color Maroon;
90 static const Color Red;
91 static const Color Purple;
92 static const Color Fuchsia;
93 static const Color Green;
94 static const Color Lime;
95 static const Color Olive;
96 static const Color Yellow;
97 static const Color Navy;
98 static const Color Blue;
99 static const Color Teal;
100 static const Color Aqua;
int GetGreen() const
緑の要素を取得.
Definition: Color.h:43
int GetBlue() const
青の要素を取得.
Definition: Color.h:53
Color(int 赤, int 緑, int 青, int 透過率=255)
RGB値から色に変換.
Definition: Color.h:17
int GetRed() const
赤の要素を取得.
Definition: Color.h:33