sead::Color4f class

Public static variables

static const f32 cElementMax
static const f32 cElementMin
static const Color4f cBlack
static const Color4f cGray
static const Color4f cWhite
static const Color4f cRed
static const Color4f cGreen
static const Color4f cBlue
static const Color4f cYellow
static const Color4f cMagenta
static const Color4f cCyan

Public static functions

static auto lerp(const Color4f& color1, const Color4f& color2, f32 t) -> Color4f

Constructors, destructors, conversion operators

Color4f() defaulted
Color4f(f32 r, f32 g, f32 b, f32 a)

Public functions

void setLerp(const Color4f& color1, const Color4f& color2, f32 t)
void setGammaCollection(const Color4f& value, f32 gamma)
void adjustOverflow()
auto operator+=(const Color4f& rhs) -> Color4f&
auto operator-=(const Color4f& rhs) -> Color4f&
auto operator*=(const Color4f& rhs) -> Color4f&
auto operator/=(const Color4f& rhs) -> Color4f&
auto operator+=(f32 x) -> Color4f&
auto operator-=(f32 x) -> Color4f&
auto operator*=(f32 x) -> Color4f&
auto operator/=(f32 x) -> Color4f&

Public variables

f32 r
f32 g
f32 b
f32 a

Friends

auto operator+(const Color4f& lhs, const Color4f& rhs) -> Color4f
auto operator-(const Color4f& lhs, const Color4f& rhs) -> Color4f
auto operator*(const Color4f& lhs, const Color4f& rhs) -> Color4f
auto operator/(const Color4f& lhs, const Color4f& rhs) -> Color4f
auto operator+(const Color4f& lhs, f32 x) -> Color4f
auto operator-(const Color4f& lhs, f32 x) -> Color4f
auto operator*(const Color4f& lhs, f32 x) -> Color4f
auto operator/(const Color4f& lhs, f32 x) -> Color4f
auto operator==(const Color4f& lhs, const Color4f& rhs) -> bool