|
tiny-skia-cpp
A C++20 2D rendering library (port of tiny-skia)
|
A color stop in a gradient.
#include <tiny_skia/shaders/Gradient.h>

Static Public Member Functions | |
| static GradientStop | create (float position, Color color) |
| Creates a stop, clamping position to [0,1]. | |
Public Attributes | |
| NormalizedF32 | position |
| Position along the gradient [0,1]. | |
| Color | color |
| Color at this position. | |