ui::GradientStop¶
Header: winui/render/Brush.hpp.
One color stop of a gradient brush.
Stops are read in vector order; between two stops the color is interpolated linearly.
Example:
const ui::GradientStop top{0.0f, ui::Color::from_rgba(255, 255, 255)};
const ui::GradientStop bottom{1.0f, ui::Color::from_rgba(200, 200, 200)};
| Field | Type | Default | |
|---|---|---|---|
offset |
float |
0.0f |
Position along the gradient axis (or out along the radius), 0..1. |
color |
Color |
The color at offset, alpha included. |