Module scarlet::colorpoint [] [src]

This file implements most of the standard color functions that essentially work on 3D space, including Euclidean distance, midpoints, and more. All of these methods work on Color types that implement Into<Coord> and From<Coord>, and some don't require From<Coord>. This makes it easy to provide these for custom Color types.

Enums

ColorCalcError

Some errors that might pop up when dealing with colors as coordinates.

Traits

ColorPoint

A trait that indicates that the current Color can be embedded in 3D space. This also requires Clone and Copy: there shouldn't be any necessary information outside of the coordinate data.