#include <Color4f.h>
Public Member Functions | |
| Color4f () | |
| コンストラクタ | |
| Color4f (float sourceR, float sourceG, float sourceB, float sourceA=1.f) | |
| コンストラクタ | |
| Color4f (const Color3c &source) | |
| コンストラクタ | |
| Color4f (const Color4c &source) | |
| コンストラクタ | |
| Color4f (const Color3f &source) | |
| コンストラクタ | |
| void | set (float sourceR, float sourceG, float sourceB, float sourceA=1.f) |
| 値の設定 | |
| void | set (const Color3c &source) |
| 三要素キャラクタカラーの設定 | |
| void | set (const Color4c &source) |
| 四要素キャラクタカラーの設定 | |
| void | set (const Color3f &source) |
| 三要素実数カラーの設定 | |
| Color4f | operator+ (const Color4f &addColor) const |
| 加算 | |
| Color4f | operator- (const Color4f &subColor) const |
| 減算 | |
| Color4f | operator * (const Color4f &mulColor) const |
| 乗算 | |
| Color4f | operator * (float mulValue) const |
| 乗算 | |
| Color4f | operator+ () const |
| +演算子 | |
| Color4f | operator- () const |
| -演算子 | |
| Color4f & | operator+= (const Color4f &addColor) |
| 代入加算 | |
| Color4f & | operator-= (const Color4f &subColor) |
| 代入減算 | |
| Color4f & | operator *= (const Color4f &mulColor) |
| 代入乗算 | |
| Color4f & | operator *= (float mulValue) |
| 代入乗算 | |
| Color4f & | clamp (float lower=0.f, float upper=1.f) |
| クランプ | |
| Color4f & | lowerClamp (float lower=0.f) |
| 下限クランプ | |
| Color4f & | upperClamp (float upper=1.f) |
| 上限クランプ | |
| Color4f & | negative () |
| 反対色 | |
| void | setHSV (const Color4f &hsv) |
| HSVの設定. | |
| Color4f | getHSV () const |
| HSVの取得. | |
| float | getHue () const |
| 色相の取得 | |
| float | getSaturation () const |
| 彩度の取得 | |
| float | getValue () const |
| 明度の取得 | |
| float | getLuminance () const |
| 輝度の取得 | |
| bool | operator== (const Color4f &target) const |
| 同じ値かどうか | |
| bool | epsilonEquals (const Color4f &target, float epsilon) const |
| 同じ値かどうか | |
| bool | operator!= (const Color4f &target) const |
| 同じ値でないかどうか | |
| bool | notEpsilonEquals (const Color4f &target, float epsilon) const |
| 同じ値でないかどうか | |
| String | toString () const |
| 文字列化 | |
Static Public Member Functions | |
| Color4f | lerp (const Color4f &source, const Color4f &target, float alpha) |
| 色の線形補間 | |
Static Public Attributes | |
| const Color4f | white |
| 白 | |
| const Color4f | gray |
| 灰色 | |
| const Color4f | black |
| 黒 | |
| const Color4f | red |
| 赤 | |
| const Color4f | green |
| 緑 | |
| const Color4f | blue |
| 青 | |
| const Color4f | yellow |
| 黄 | |
| const Color4f | cyan |
| 青緑 | |
| const Color4f | magenta |
| 赤紫 | |
Friends | |
| Color4f | operator * (float mulValue, const Color4f &mulColor) |
| 乗算 | |
このクラスは継承しないで下さい。
Definition at line 42 of file Color4f.h.
|
|
コンストラクタ このコンストラクタは初期値の設定を行わないため値は不定です。 Definition at line 115 of file Color4f.h. Referenced by operator *(), operator+(), and operator-(). |
|
||||||||||||||||||||
|
コンストラクタ
|
|
|
コンストラクタ
Definition at line 65 of file Color4f.cpp. |
|
|
コンストラクタ
Definition at line 70 of file Color4f.cpp. |
|
|
コンストラクタ
Definition at line 76 of file Color4f.cpp. |
|
||||||||||||
|
クランプ
|
|
||||||||||||
|
同じ値かどうか
|
|
|
HSVの取得.
|
|
|
色相の取得
|
|
|
輝度の取得
|
|
|
彩度の取得
|
|
|
明度の取得
|
|
||||||||||||||||
|
色の線形補間
|
|
|
下限クランプ
|
|
|
反対色 アルファ値は変化しません。
|
|
||||||||||||
|
同じ値でないかどうか
|
|
|
乗算
|
|
|
乗算
|
|
|
代入乗算
|
|
|
代入乗算
|
|
|
同じ値でないかどうか
|
|
|
+演算子
|
|
|
加算
|
|
|
代入加算
|
|
|
-演算子
|
|
|
減算
|
|
|
代入減算
|
|
|
同じ値かどうか
|
|
|
三要素実数カラーの設定
Definition at line 91 of file Color4f.cpp. References Lamp::Color3f::b, Lamp::Color3f::g, Lamp::Color3f::r, and set(). |
|
|
四要素キャラクタカラーの設定
Definition at line 86 of file Color4f.cpp. References Lamp::Color4c::a, Lamp::Color4c::b, Lamp::Color4c::g, Lamp::Color4c::r, and set(). |
|
|
三要素キャラクタカラーの設定
Definition at line 81 of file Color4f.cpp. References Lamp::Color3c::b, Lamp::Color3c::g, Lamp::Color3c::r, and set(). |
|
||||||||||||||||||||
|
値の設定
Definition at line 157 of file Color4f.h. Referenced by negative(), set(), and setHSV(). |
|
|
HSVの設定.
|
|
|
文字列化
Definition at line 563 of file Color4f.h. References a, b, Lamp::String::format(), g, and r. |
|
|
上限クランプ
|
|
||||||||||||
|
乗算
|
1.3.2