Color

Fields

float red
float green
float blue
float alpha

Functions

Color
Color
bool operator==
bool operator!=

Detailed Description

struct Color

An RGBA color, where each channel is in normalized [0, 1] space.

Public Functions

Color() = default
inline Color(float red, float green, float blue, float alpha)

Constructor definition for a color. Takes four float values as parameters. This example represents the color red: Color * red_color = new Color(1.0f, 0.0f, 0.0f, 1.0f);

inline bool operator==(Color const &that) const
inline bool operator!=(Color const &that) const

Public Members

float red

Red component of this color object, from 0.0 to 1.0.

float green

Green component of this color object, from 0.0 to 1.0.

float blue

Blue component of this color object, from 0.0 to 1.0.

float alpha

Alpha component of this color object, from 0.0 to 1.0. Used to define transparency level.