[][src]Module scarlet::bound

This module describes the Bound trait, which allows for a description of what colors a color gamut supports. For example, the sRGB gamut only supports RGB values ranging from 0-1 that are scaled to 0-255, which is about 30% of the total visible range of human vision.

Traits

Bound

Describes a color space in which the total space of representable colors has explicit bounds besides those imposed by human vision. For example, an sRGB color can't have negative values for any of its components, whereas the CIELAB space can feasibly describe even those colors that cannot be viewed by humans. This only applies to colors that can be embedded in 3D space, hence the use of the ColorPoint trait as a dependency. For more, check out this guide.