Module crystal_ball::color[][src]

Expand description

Data Types and functions related to colors and images.

Structs

Color

An RGB color represented by 3 float values. (0, 0, 0) is black and (1, 1, 1) is white. This struct supports elementwise arithmetic operations (+, -, *, /).

Image

An image of fixed size represented as a 2-dimensional Vec of Color.

ImageTile

A tile of an image storing its position and its chunk of the original image.

Traits

Texture

Specify a color of each pixel.