|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
Paint carried by one cross-entity batch instance: a solid colour, or a resolved gradient whose parameters and stop ramp the encoder copies into the slot's persistent paint block. More...
#include "donner/svg/renderer/geode/GeoEncoder.h"
Public Member Functions | |
| bool | isGradient () const |
| True when this instance paints with a gradient rather than a colour. | |
Public Attributes | |
| css::RGBA | color = css::RGBA(0, 0, 0, 255) |
| const LinearGradientParams * | linearGradient = nullptr |
| const RadialGradientParams * | radialGradient = nullptr |
Paint carried by one cross-entity batch instance: a solid colour, or a resolved gradient whose parameters and stop ramp the encoder copies into the slot's persistent paint block.
The gradient pointers are borrowed for the duration of the call only.