pub struct ColorStop {
pub value: f32,
pub color: [f32; 4],
}Expand description
A single stop in a ColorRamp.
Fields§
§value: f32Normalized input value (typically 0.0..=1.0).
color: [f32; 4]Linear RGBA colour at this stop.
Trait Implementations§
impl Copy for ColorStop
impl StructuralPartialEq for ColorStop
Auto Trait Implementations§
impl Freeze for ColorStop
impl RefUnwindSafe for ColorStop
impl Send for ColorStop
impl Sync for ColorStop
impl Unpin for ColorStop
impl UnsafeUnpin for ColorStop
impl UnwindSafe for ColorStop
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more