Struct floem_peniko::ColorStop
source · pub struct ColorStop {
pub offset: f32,
pub color: Color,
}
Expand description
Offset and color of a transition point in a gradient.
Fields§
§offset: f32
Normalized offset of the stop.
color: Color
Color at the specified offset.
Implementations§
Trait Implementations§
source§impl PartialEq for ColorStop
impl PartialEq for ColorStop
source§impl PartialOrd for ColorStop
impl PartialOrd for ColorStop
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ColorStop
impl Eq for ColorStop
Auto Trait Implementations§
impl RefUnwindSafe for ColorStop
impl Send for ColorStop
impl Sync for ColorStop
impl Unpin 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