STRUCT v1.8.0

Color

kn::Color

Declared in kraken/graphics/Color.hpp

Reference

C++ API

r

variable
uint8_t r = 0

No description in the source header.

g

variable
uint8_t g = 0

No description in the source header.

b

variable
uint8_t b = 0

No description in the source header.

a

variable
uint8_t a = 255

No description in the source header.

toHex

function
std::string toHex() const

No description in the source header.

fromHex

function
void fromHex(std::string_view hex)

No description in the source header.

toHSV

function
color::HSV toHSV() const

No description in the source header.

fromHSV

function
void fromHSV(const color::HSV &hsv)

No description in the source header.

operator SDL_Color() const

No description in the source header.

operator SDL_FColor() const

No description in the source header.

operator uint32_t() const

No description in the source header.

operator==

function
bool operator==(const Color &other) const

No description in the source header.

operator!=

function
bool operator!=(const Color &other) const

No description in the source header.

operator-

function
Color operator-() const

No description in the source header.

operator*

function
Color operator*(double scalar) const

No description in the source header.

operator*=

function
Color & operator*=(double scalar)

No description in the source header.

operator/

function
Color operator/(double scalar) const

No description in the source header.

operator/=

function
Color & operator/=(double scalar)

No description in the source header.

Find your next step

Start typing to search the manual.