Skip to content

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's TAlphaColor 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

Patterns

Variant

  • TBLVar - variant type can be used to hold any style and then passed to the rendering context.