Class: rgb_color

The rgb_color class is a basic structure for storing a color value, including opacity/transparency.

Member Variables


r (int)

The red component of the color. Values can range from 0 to 255.


g (int)

The green component of the color. Values can range from 0 to 255.


b (int)

The blue component of the color. Values can range from 0 to 255.


a (int)

The alpha (or opacity) component of the color. Values can range from 0 to 255. An alpha of 0 is a totally transparent color, while a value of 255 indicates a totally opaque color.

Member Functions

(none)