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

Angular sweep gradient shader. More...

#include <tiny_skia/shaders/SweepGradient.h>

Static Public Member Functions

static std::optional< std::variant< Color, SweepGradient > > create (Point center, float startAngle, float endAngle, std::vector< GradientStop > stops, SpreadMode mode, Transform transform)
 Creates a sweep gradient between startAngle and endAngle (degrees). Returns a Color if the gradient degenerates to a single color.
 

Detailed Description

Colors are distributed around a center point between a start and end angle.


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