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
- BLRgba - RGBA color specified as 32-bit floating point value per channel
- BLRgba32 - RGBA color specified as 8-bit value per channel as
0xAARRGGBB
- BLRgba64 - RGBA color specified as 16-bit value per channel as
0xAAAARRRRGGGGBBBB
- (please note that the order if bytes in BLRgba32 and BLRgba64 is ARGB (from MSB to LSB) for compatibility with other libraries and common representations)
Gradients
- BLGradient - container that holds gradient values and stops
- BLGradientCore - C API type representing BLGradient
- BLGradientStop - associates a color with offset (from 0.0 to 1.0)
- BLGradientType - describes a gradient type
- BLGradientValue - index of a gradient value (overlaps between various gradient types)
- BLGradientQuality - describes a gradient quality
- BLExtendMode - specifies a gradient extend mode (only simple extend modes can be used with gradients)
- BLLinearGradientValues - values describing a linear gradient
- BLRadialGradientValues - values describing a radial gradient
- BLConicGradientValues - values describing a conic gradient
Patterns
- BLPattern - represents a pattern
- BLPatternCore - C API type representing BLPattern
- BLPatternQuality - describes a pattern quality
- BLExtendMode - specifies a pattern extend mode (all extend modes can be used with patterns)
Variant
- BLVar - variant type can be used to hold any style and then passed to the rendering context