[][src]Module graphics::color

Helper methods for colors

Constants

BLACK

Black color.

TRANSPARENT

Transparent color.

WHITE

White color.

Functions

alpha

Returns a semi-transparent white color

gamma_linear_to_srgb

Converts gamma (brightness) of a color from linear color space to sRGB.

gamma_srgb_to_linear

Converts gamma (brightness) from sRGB to linear color space.

grey

Returns a grey color

hex

Converts from hexadecimal color format