|
|
Donner
C++20 SVG rendering library
|
Parameters for a "<stop>" element. More...
#include "donner/svg/components/paint/StopComponent.h"
Public Member Functions | |
| auto | allProperties () |
| Get all properties as a tuple. | |
Public Attributes | |
| float | offset = 0.0f |
| The offset of the stop, defaults to 0. Range is [0, 1], if it is outside the range it will be clamped. | |
| Property< css::Color > | stopColor |
| The color of the stop, defaults to black. | |
| Property< double > | stopOpacity {"stop-opacity", []() -> std::optional<double> { return 1.0; }} |
| The opacity of the stop, defaults to 1. Range is [0, 1], if it is outside the range it will be clamped. | |
Parameters for a "<stop>" element.
| Property<css::Color> donner::svg::components::StopProperties::stopColor |
The color of the stop, defaults to black.