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, float opacity = -1.0f, std::string name = "")

Public functions

auto isNull() const -> bool
auto hasOpacity() const -> bool
auto asVector() const -> Vector3f
auto getRedValue() const -> float
auto getGreenValue() const -> float
auto getBlueValue() const -> float
auto getOpacity() const -> float
auto getName() const -> std::string

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