Sead/Color4f

From Deep Sea Knowledge
Revision as of 19:57, 6 November 2018 by OatmealDome (talk | contribs) (add documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

sead::Color4f is a helper class containing red, green, blue, and alpha float values.

Implementation

This class has four floats.

float red;
float green;
float blue;
float alpha;

The following operators are supported:

  • +=
  • -=
  • *=
  • /=

If provided a second sead::Color4f instance, the requested operation will be performed using the RGBA values in each operand. If provided a float, the single float will be applied to all RGBA values of the target sead::Color4f using the requested operation.

setLerp(sead::Color4f, sead::Color4f, float)

TODO...

setGammaCollection(sead::Color4f, float)

TODO...

lerp(sead::Color4f, sead::Color4f, float)

TODO...

adjustOverflow()

Clamps the RGBA values to 1.0f.