#[repr(transparent)]pub struct ColorStop { /* private fields */ }
Expand description
A color stop in a gradient node.
Implementations§
source§impl ColorStop
impl ColorStop
pub fn new(offset: f32, color: RGBA) -> Self
sourcepub fn builder() -> ColorStopBuilder
pub fn builder() -> ColorStopBuilder
Creates a new builder-pattern struct instance to construct ColorStop
objects.
This method returns an instance of ColorStopBuilder
which can be used to create ColorStop
objects.