pub struct Stop {
pub color: [f64; 4],
pub flags: u32,
pub position: f64,
pub curve: Vec<(f64, f64)>,
}Expand description
One colour stop.
Fields§
§color: [f64; 4]Straight RGBA, 0..1.
flags: u321 main colour, 2 sub colour, 0x10 curved to the next stop (curve holds the curve).
position: f640..1 along the gradient.
curve: Vec<(f64, f64)>Control points (x, y) shaping the change to the next stop.
Trait Implementations§
impl StructuralPartialEq for Stop
Auto Trait Implementations§
impl Freeze for Stop
impl RefUnwindSafe for Stop
impl Send for Stop
impl Sync for Stop
impl Unpin for Stop
impl UnsafeUnpin for Stop
impl UnwindSafe for Stop
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