fast::Color class

Public static functions

static auto fromString(std::string str) -> Color
static auto Null() -> Color
static auto Red() -> Color
static auto Green() -> Color
static auto Blue() -> Color
static auto White() -> Color
static auto Black() -> Color
static auto Yellow() -> Color
static auto Magenta() -> Color
static auto Cyan() -> Color
static auto Brown() -> Color

Constructors, destructors, conversion operators

Color()
Color(float red, float green, float blue)

Public functions

auto isNull() const -> bool
auto asVector() const -> Vector3f
auto getRedValue() const -> float
auto getGreenValue() const -> float
auto getBlueValue() const -> float

Function documentation

static Color fast::Color::Null()

The color Null means NO COLOR, or not set, resulting in isNull() returning true

bool fast::Color::isNull() const

Whether the color is set or not