bressenham::color

struct color

The RGB codes to represent colors.

The RGB color model consists of three additive primary colors, red, green, and blue. They can be added together in various ways to reproduce a broad array of colors.

Each parameter (red, green, and blue) defines the intensity of its color as an integer between 0 and 255.

For example, RGB(0, 0, 255) is rendered as blue, because the blue parameter is set to its highest value (255) and the others are set to 0.

Public Functions

auto operator==(const color &other) const

An equals overload to compare color objects.

Public Members

GLubyte r = 0

The red parameter.

GLubyte g = 0

The green parameter.

GLubyte b = 0

The blue parameter.