Skip to main content

Module color

Module color 

Source
Expand description

Color and opacity types used by Pax style properties and render backends.

Structs§

Percent
Raw Percent type, which we use for serialization and dynamic traversal. At the time of authoring, this type is not used directly at runtime, but is intended for into coercion into downstream types, e.g. ColorChannel, Rotation, and Size. This allows us to be “dumb” about how we parse %, and allow the context in which it is used to pull forward a specific type through into inference.

Enums§

Color
Entrypoint for specifying and representing colors in Pax.
ColorChannel
Describes a color channel in a unit appropriate to the surrounding color model.
Opacity
Describes an opacity value either as normalized alpha or as a percent.

Functions§

bound