pub struct ColorStop {
pub position: f32,
pub color: Color32,
}Expand description
Color stop for gradients (position 0.0-1.0, color) A color stop in a gradient, defining a color at a specific position
Fields§
§position: f32Position in the gradient (0.0 to 1.0)
color: Color32Color at this position
Implementations§
Trait Implementations§
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