Color
kn::Color Declared in kraken/graphics/Color.hpp
At a glance
18 membersReference
C++ APIr
variableuint8_t r = 0No description in the source header.
g
variableuint8_t g = 0No description in the source header.
b
variableuint8_t b = 0No description in the source header.
a
variableuint8_t a = 255No description in the source header.
toHex
functionstd::string toHex() constNo description in the source header.
fromHex
functionvoid fromHex(std::string_view hex)No description in the source header.
toHSV
functioncolor::HSV toHSV() constNo description in the source header.
fromHSV
functionvoid fromHSV(const color::HSV &hsv)No description in the source header.
operator SDL_Color
functionoperator SDL_Color() constNo description in the source header.
operator SDL_FColor
functionoperator SDL_FColor() constNo description in the source header.
operator uint32_t
functionoperator uint32_t() constNo description in the source header.
operator==
functionbool operator==(const Color &other) constNo description in the source header.
operator!=
functionbool operator!=(const Color &other) constNo description in the source header.
operator-
functionColor operator-() constNo description in the source header.
operator*
functionColor operator*(double scalar) constNo description in the source header.
operator*=
functionColor & operator*=(double scalar)No description in the source header.
operator/
functionColor operator/(double scalar) constNo description in the source header.
operator/=
functionColor & operator/=(double scalar)No description in the source header.