RGB色空間 [詳解]
#include <Udon/Types/Forward/RGB.hpp>
公開型 | |
| using | ValueType = uint8_t |
| 要素の型 | |
公開メンバ関数 | |
| constexpr | RGB () noexcept |
| デフォルトコンストラクタ | |
| constexpr | RGB (ValueType r, ValueType g, ValueType b) noexcept |
| コンストラクタ | |
| RGB (uint32_t rgb) noexcept | |
| コンストラクタ | |
| RGB (const HSV &hsv) noexcept | |
| 変換コンストラクタ | |
| RGB (const RGB &)=default | |
| コピーコンストラクタ | |
| RGB & | operator= (const RGB &)=default |
| コピー代入演算子 | |
| template<typename FloatingPoint, Traits::EnableIfNullptrT< Traits::IsFloatingPoint< FloatingPoint >::value > = nullptr> | |
| constexpr RGB | operator* (FloatingPoint rhs) const noexcept |
| template<typename FloatingPoint, Traits::EnableIfNullptrT< Traits::IsFloatingPoint< FloatingPoint >::value > = nullptr> | |
| constexpr RGB | operator/ (FloatingPoint rhs) const noexcept |
| constexpr bool | operator== (const RGB &rhs) const noexcept |
| constexpr bool | operator!= (const RGB &rhs) const noexcept |
| constexpr | operator bool () const noexcept |
| uint32_t | to24bit () const noexcept |
| 24bit値への変換 | |
| HSV | toHSV () const noexcept |
| HSV色空間に変換 | |
| UDON_ENUMERABLE (r, g, b) | |
公開変数類 | |
| ValueType | r |
| 赤成分 | |
| ValueType | g |
| 緑成分 | |
| ValueType | b |
| 青成分 | |
RGB色空間
| using Udon::RGB::ValueType = uint8_t |
要素の型
|
inlineconstexprnoexcept |
デフォルトコンストラクタ
コンストラクタ
| r | 赤成分 |
| g | 緑成分 |
| b | 青成分 |
|
inlinenoexcept |
コンストラクタ
| rgb | RGB色空間 |
|
inlinenoexcept |
変換コンストラクタ
RGB色空間からHSV色空間への変換
| hsv | HSV色空間 |
|
default |
コピーコンストラクタ
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
24bit値への変換
|
inlinenoexcept |
HSV色空間に変換
RGB色空間からHSV色空間への変換
| ValueType Udon::RGB::b |
青成分
| ValueType Udon::RGB::g |
緑成分
| ValueType Udon::RGB::r |
赤成分