tiny-skia-cpp
A C++20 2D rendering library (port of tiny-skia)
Loading...
Searching...
No Matches
tiny_skia::StrokeDash Struct Reference

Dash pattern for stroked paths.

#include <tiny_skia/Stroke.h>

Static Public Member Functions

static std::optional< StrokeDashcreate (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.
 

The documentation for this struct was generated from the following file: