class that holds color with 8 bits per channel with 4 channels rgba. More...
#include <core.h>
Public Member Functions | |
| color () | |
| color (uint8_t r) | |
| color (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) | |
| color (const vec3 &in) | |
| vec4 | getcolor () const |
| vec3 | getcolorVec3 () const |
| uint8_t | r () const |
| uint8_t | g () const |
| uint8_t | b () const |
| uint8_t | a () const |
| uint8_t & | r () |
| uint8_t & | g () |
| uint8_t & | b () |
| uint8_t & | a () |
| color | operator* (const vec3 &in) const |
| void | operator*= (const vec3 &in) |
| color | operator* (const color &in) const |
| void | operator*= (const color &in) |
| color | operator+ (const color &in) const |
| void | operator+= (const color &in) |
| color | operator* (const float &in) const |
| void | operator*= (const float &in) |
| bool | operator== (const color &in) |
Public Attributes | |
| uint32_t | col |
class that holds color with 8 bits per channel with 4 channels rgba.
|
inline |