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
intocoercion 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 throughintoinference.
Enums§
- Color
- Entrypoint for specifying and representing colors in Pax.
- Color
Channel - 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.