pub enum RampShape {
Linear {
from: Point,
to: Point,
},
Radial {
center: Point,
radius: f32,
focal: Point,
focal_radius: f32,
},
}Expand description
Where a GradientRamp’s colours run.
Variants§
Linear
The first stop at from, the last at to, constant across the line.
Radial
Offset 0 on the circle about focal of radius focal_radius, offset 1 on the
circle about center of radius radius, and the circles between them for the
offsets between. With the focal point at the centre and no focal radius, it is the
plain outward fade.
Trait Implementations§
impl Copy for RampShape
impl StructuralPartialEq for RampShape
Auto Trait Implementations§
impl Freeze for RampShape
impl RefUnwindSafe for RampShape
impl Send for RampShape
impl Sync for RampShape
impl Unpin for RampShape
impl UnsafeUnpin for RampShape
impl UnwindSafe for RampShape
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