#include <Colorf.h>
|
constexpr | Colorf ()=default |
|
template<class R , class G , class B , class A = float>
requires std::is_floating_point_v<R> && std::is_floating_point_v<G> && std::is_floating_point_v<B> && std::is_floating_point_v<A> |
constexpr | Colorf (R r, G g, B b, A a=1.0f) |
|
constexpr Color | toColor () const |
|
HsvColorf | toHsv () const |
|
|
float | r = 0 |
|
float | g = 0 |
|
float | b = 0 |
|
float | a = 0 |
|
◆ Colorf() [1/2]
constexpr Colorf::Colorf |
( |
| ) |
|
|
constexprdefault |
◆ Colorf() [2/2]
template<class R , class G , class B , class A = float>
requires std::is_floating_point_v<R> && std::is_floating_point_v<G> && std::is_floating_point_v<B> && std::is_floating_point_v<A>
constexpr Colorf::Colorf |
( |
R |
r, |
|
|
G |
g, |
|
|
B |
b, |
|
|
A |
a = 1.0f |
|
) |
| |
|
inlineconstexpr |
◆ toColor()
constexpr Color Colorf::toColor |
( |
| ) |
const |
|
inlineconstexpr |
◆ toHsv()
- Original binary offset:
- 0x0048A7AA
- Returns
- This color, converted to HSV.
The documentation for this struct was generated from the following files: