Styling
Colors, gradients, and patterns.
Styling provides various classes that represent colors, gradients, and patterns. While colors are used universally across the library (not just as styles), gradients and patterns are always used as fill or stroke styles.
Colors
- TBLRgba - RGBA color specified as 32-bit floating point value per channel.
- TBLRgba32 - RGBA color specified as 8-bit value per channel as
$AARRGGBB
. This type is compatible with Delphi'sTAlphaColor
type. - TBLRgba64 - RGBA color specified as 16-bit value per channel as
$AAAARRRRGGGGBBBB
.
Note
The order if bytes in TBLRgba32
and TBLRgba64
is ARGB (from MSB to LSB) for compatibility with other libraries and common representations.
Gradients
- TBLGradient - container that holds gradient values and stops.
- TBLGradientStop - associates a color with offset (from 0.0 to 1.0).
- TBLGradientKind - describes a gradient type.
- TBLGradientValue - index of a gradient value (overlaps between various gradient types).
- TBLGradientQuality - describes a gradient quality.
- TBLExtendMode - specifies a gradient extend mode (only simple extend modes can be used with gradients).
- TBLLinearGradientValues - values describing a linear gradient.
- TBLRadialGradientValues - values describing a radial gradient.
- TBLConicGradientValues - values describing a conic gradient.
Patterns
- TBLPattern - represents a pattern.
- TBLPatternQuality - describes a pattern quality.
- TBLExtendMode - specifies a pattern extend mode (all extend modes can be used with patterns).
Variant
- TBLVar - variant type can be used to hold any style and then passed to the rendering context.