Module scarlet::colorpoint
source · Expand description
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
- Some errors that might pop up when dealing with colors as coordinates.
Traits
- A trait that indicates that the current Color can be embedded in 3D space. This also requires
Clone
andCopy
: there shouldn’t be any necessary information outside of the coordinate data.