Module rurtle::graphic::color [] [src]

Module for color aliases

Constants

BLACK
BLUE
GREEN
RED
WHITE

Functions

to_array

Convert a Color (4-tuple of f32) to a color array ([f32; 4]). Useful for sending it to shaders.

Type Definitions

Color

Alias for a 4-f32 tuple, representing the colors as RGB values and the alpha channel