gl3n_extra.color

Tools to manipulate 4D ubyte vectors as RGBA colors.

Members

Aliases

Color
alias Color = vec4ub

8-bit RGBA color.

Functions

rgb
Color rgb(I r, I g, I b)

Construct an RGB (RGBA with full alpha) color from individual channels.

rgba
Color rgba(I r, I g, I b, I a)

Construct an RGBA color from individual channels.

rgba
Color rgba()

RGBA color from a hexadecimal string (CSS style), e.g. FFFFFF80 for half-transparent white.

Templates

rgb
template rgb(string c)

RGB color from a hexadecimal string (CSS style), e.g. FFFFFF for white.

Meta