![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
#include <Color.hpp>
Public Types | |
using | value_type = uint8 |
Public Member Functions | |
SIV3D_NODISCARD_CXX20 | Color ()=default |
デフォルトコンストラクタ More... | |
SIV3D_NODISCARD_CXX20 | Color (const Color &)=default |
コピーコンストラクタ More... | |
constexpr SIV3D_NODISCARD_CXX20 | Color (value_type _r, value_type _g, value_type _b, value_type _a=255) noexcept |
constexpr SIV3D_NODISCARD_CXX20 | Color (value_type rgb, value_type _a=255) noexcept |
constexpr SIV3D_NODISCARD_CXX20 | Color (Color rgb, value_type _a) noexcept |
constexpr SIV3D_NODISCARD_CXX20 | Color (const ColorF &color) noexcept |
constexpr SIV3D_NODISCARD_CXX20 | Color (const ColorF &color, value_type _a) noexcept |
SIV3D_NODISCARD_CXX20 | Color (const HSV &hsva) noexcept |
SIV3D_NODISCARD_CXX20 | Color (const HSV &hsv, value_type _a) noexcept |
constexpr SIV3D_NODISCARD_CXX20 | Color (StringView code) noexcept |
constexpr Color & | operator= (const Color &) noexcept=default |
constexpr Color & | operator= (const ColorF &color) noexcept |
Color & | operator= (const HSV &hsva) noexcept |
constexpr Color | operator~ () const noexcept |
constexpr Color & | setR (uint32 _r) noexcept |
constexpr Color & | setG (uint32 _g) noexcept |
constexpr Color & | setB (uint32 _b) noexcept |
constexpr Color & | setA (uint32 _a) noexcept |
constexpr Color & | setRGB (uint32 rgb) noexcept |
constexpr Color & | setRGB (uint32 _r, uint32 _g, uint32 _b) noexcept |
constexpr Color & | set (uint32 rgb, uint32 _a=255) noexcept |
constexpr Color & | set (uint32 _r, uint32 _g, uint32 _b, uint32 _a=255) noexcept |
constexpr Color & | set (Color color) noexcept |
constexpr Color | withAlpha (uint32 _a) const noexcept |
constexpr uint8 | grayscale0_255 () const noexcept |
constexpr double | grayscale () const noexcept |
constexpr uint8 | minRGBComponent () const noexcept |
constexpr uint8 | maxRGBComponent () const noexcept |
constexpr uint8 | minComponent () const noexcept |
constexpr uint8 | maxComponent () const noexcept |
constexpr uint32 | asUint32 () const noexcept |
constexpr Color | lerp (Color other, double f) const noexcept |
Color | gamma (double gamma) const noexcept |
ColorF | removeSRGBCurve () const noexcept |
ColorF | applySRGBCurve () const noexcept |
String | toHex () const |
size_t | hash () const noexcept |
Static Public Member Functions | |
static constexpr Color | Zero () noexcept |
static constexpr uint8 | ToUint8 (float x) noexcept |
static constexpr uint8 | ToUint8 (double x) noexcept |
static constexpr Color | FromRGBA (uint32 rgba) noexcept |
static constexpr Color | FromABGR (uint32 abgr) noexcept |
Public Attributes | |
value_type | r |
赤 | Red More... | |
value_type | g |
緑 | Green More... | |
value_type | b |
青 | Blue More... | |
value_type | a |
アルファ | Alpha More... | |
Friends | |
constexpr friend bool | operator== (Color lhs, Color rhs) noexcept |
2 つの色が等しいかを返します。 More... | |
constexpr friend bool | operator!= (Color lhs, Color rhs) noexcept |
template<class CharType > | |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &output, const Color &value) |
template<class CharType > | |
std::basic_istream< CharType > & | operator>> (std::basic_istream< CharType > &input, Color &value) |
void | Formatter (FormatData &formatData, const Color &value) |
using s3d::Color::value_type = uint8 |
|
default |
デフォルトコンストラクタ
|
default |
コピーコンストラクタ
|
constexprnoexcept |
|
explicitconstexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
noexcept |
|
noexcept |
|
explicitconstexprnoexcept |
|
noexcept |
|
constexprnoexcept |
|
noexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
noexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
noexcept |
|
constexprnoexcept |
String s3d::Color::toHex | ( | ) | const |
|
staticconstexprnoexcept |
|
staticconstexprnoexcept |
|
staticconstexprnoexcept |
|
friend |
|
friend |
2 つの色が等しいかを返します。
lhs | 比較する色 |
rhs | 比較する色 |
|
friend |
value_type s3d::Color::a |
アルファ | Alpha
value_type s3d::Color::b |
青 | Blue
value_type s3d::Color::g |
緑 | Green
value_type s3d::Color::r |
赤 | Red