|
SDXFrameWork
0.10
SDXFrameWork
|
色を表すクラス. More...
#include <Color.h>
Public Member Functions | |
| Color (int 赤, int 緑, int 青, int α値=255) | |
| RGB値から色に変換. More... | |
| void | SetColor (int 赤, int 緑, int 青, int α値=255) |
| 色の各要素を設定. More... | |
| int | GetRed () const |
| 赤の要素を取得. More... | |
| int | GetGreen () const |
| 緑の要素を取得. More... | |
| int | GetBlue () const |
| 青の要素を取得. More... | |
| int | GetAlpha () const |
| 透明度を取得. More... | |
| operator SDL_Color () const | |
| 型変換. More... | |
| bool | operator== (const Color &比較色) const |
| 比較オペレータ. More... | |
| bool | operator!= (const Color &比較色) const |
| 比較オペレータ. More... | |
Static Public Attributes | |
| static const Color | Black = { 0, 0, 0 } |
| 黒 [RGB]0,0,0 | |
| static const Color | Silver = { 192, 192, 192 } |
| 銀 [R]192,192,192 | |
| static const Color | Gray |
| 灰 [RGB]128,128,128 | |
| static const Color | White |
| 白 [RGB]255,255,255 | |
| static const Color | Maroon |
| 栗 [RGB]128,0,0 | |
| static const Color | Red |
| 赤 [RGB]255,0,0 | |
| static const Color | Purple |
| 紫 [RGB]128,0,128 | |
| static const Color | Fuchsia |
| 赤紫 [RGB]255,0,255 | |
| static const Color | Green |
| 濃緑 [RGB]0,128,0 | |
| static const Color | Lime |
| 明緑 [RGB]0,255,0 | |
| static const Color | Olive |
| 暗黄 [RGB]128,128,0 | |
| static const Color | Yellow |
| 黄 [[RGB]255,255,0 | |
| static const Color | Navy |
| 濃青 [RGB]0,0,128 | |
| static const Color | Blue |
| 青 [RGB]0,0,255 | |
| static const Color | Teal |
| 青緑 [RGB]0,128,128 | |
| static const Color | Aqua |
| 水 [RGB]0,255,255 | |
色を表すクラス.
| SDX::Color::Color | ( | int | 赤, |
| int | 緑, | ||
| int | 青, | ||
| int | α値 = 255 |
||
| ) |
RGB値から色に変換.
赤、緑、青の各要素は0~255で指定する
| void SDX::Color::SetColor | ( | int | 赤, |
| int | 緑, | ||
| int | 青, | ||
| int | α値 = 255 |
||
| ) |
色の各要素を設定.
| int SDX::Color::GetRed | ( | ) | const |
赤の要素を取得.
| int SDX::Color::GetGreen | ( | ) | const |
緑の要素を取得.
| int SDX::Color::GetBlue | ( | ) | const |
青の要素を取得.
| int SDX::Color::GetAlpha | ( | ) | const |
透明度を取得.
| SDX::Color::operator SDL_Color | ( | ) | const |
型変換.
| bool SDX::Color::operator== | ( | const Color & | 比較色 | ) | const |
比較オペレータ.
| bool SDX::Color::operator!= | ( | const Color & | 比較色 | ) | const |
比較オペレータ.
1.8.7