|
tiny-skia-cpp
A C++20 2D rendering library (port of tiny-skia)
|
Dash pattern for stroked paths.
#include <tiny_skia/Stroke.h>
Static Public Member Functions | |
| static std::optional< StrokeDash > | create (std::vector< float > dashArray, float dashOffset) |
| Creates a validated dash. Returns nullopt if the array is invalid. | |
Public Attributes | |
| std::vector< float > | array |
| Dash/gap lengths. Must have an even count with all values > 0. | |
| float | offset = 0.0f |
| Offset into the dash pattern. | |