Public Member Functions | Public Attributes

a5::RGB Struct Reference
[Color]

Stores Colors in the RGB format. More...

#include <Color.hpp>

List of all members.

Public Member Functions

 RGB (int r_, int g_, int b_)
 Creates an RGB object with the specified values.
 RGB (const Color &c)
 Creates an RGB object from a Color object.
 operator Color () const
 Converts to a Color object.

Public Attributes

int r
 Red color component.
int g
 Green color component.
int b
 Blue color component.

Detailed Description

Stores Colors in the RGB format.


Constructor & Destructor Documentation

a5::RGB::RGB ( int  r_,
int  g_,
int  b_ 
)

Creates an RGB object with the specified values.

a5::RGB::RGB ( const Color c  ) 

Creates an RGB object from a Color object.


Member Function Documentation

a5::RGB::operator Color (  )  const

Converts to a Color object.


Member Data Documentation

Red color component.

Green color component.

Blue color component.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines