Struct Color

Struct Documentation

struct Color

Color structure

r,g,b,a color values with values in range [0.0, 1.0]

Public Functions

Color() = default
inline Color(float r, float g, float b, float a)
Parameters:
  • r – Red value

  • g – Green value

  • b – Blue value

  • a – Alpha value

Throws:

std::invalid_argument – if r,g,b,a values are not in range [0.0, 1.0]

Public Members

float r = 0.0f
float g = 0.0f
float b = 0.0f
float a = 0.0f