Color

The cer::Color structure represents a floating-point RGBA color, with its components being within the range [0.0 .. 1.0].

struct Color {
    constexpr Color() = default;
    constexpr Color(float r, float g, float b, float a = 1.0f);
    
    auto toVector3() const -> Vector3;
    auto toVector4() const -> Vector4;

    float r{};
    float g{};
    float b{};
    float a{};
};

cerlib provides a set of predefined colors for your convenience, such as white, black, red etc.

These colors can be accessed simply by their names, e.g. cer::white and cer::black.

Example
auto color1 = cer::white;
auto color2 = cer::black;