Simple Graphics Library  0.9.5
SGL API
Public Member Functions | Public Attributes | List of all members
sgl::Color Class Reference

#include <sgl.h>

Public Member Functions

 Color (double r, double g, double b)
 

Public Attributes

double red
 
double green
 
double blue
 

Detailed Description

A Color object represents an RGB color. Color objects are immutable.

Constructor & Destructor Documentation

◆ Color()

sgl::Color::Color ( double  r,
double  g,
double  b 
)
inline

Initializes a Color object. The constructor enforces clamped RGB values (0.0...1.0).

Parameters
rthe red component of the color
gthe green component of the color
bthe blue component of the color

Member Data Documentation

◆ blue

double sgl::Color::blue

The blue component of the color

◆ green

double sgl::Color::green

The green component of the color

◆ red

double sgl::Color::red

The red component of the color


The documentation for this class was generated from the following file: