pub struct SweepGradient(pub Gradient);Expand description
A clockwise angular gradient in radians.
Tuple Fields§
§0: GradientImplementations§
Source§impl SweepGradient
impl SweepGradient
Sourcepub fn stop(self, position: f64, color: Color) -> Self
pub fn stop(self, position: f64, color: Color) -> Self
Appends a sorted color stop; invalid/excessive inputs fail recording.
Sourcepub fn space(self, space: GradientSpace) -> Self
pub fn space(self, space: GradientSpace) -> Self
Selects the interpolation space.
Sourcepub fn units(self, units: GradientUnits) -> Self
pub fn units(self, units: GradientUnits) -> Self
Selects object-relative or local user-space coordinates.
Sourcepub fn extend(self, extend: GradientExtend) -> Self
pub fn extend(self, extend: GradientExtend) -> Self
Selects pad/repeat/reflect outside the color interval.
Trait Implementations§
Source§impl Clone for SweepGradient
impl Clone for SweepGradient
Source§impl Debug for SweepGradient
impl Debug for SweepGradient
Source§impl From<SweepGradient> for Paint
impl From<SweepGradient> for Paint
Source§fn from(value: SweepGradient) -> Self
fn from(value: SweepGradient) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SweepGradient
impl PartialEq for SweepGradient
impl StructuralPartialEq for SweepGradient
Auto Trait Implementations§
impl Forget for SweepGradient
impl Freeze for SweepGradient
impl Move for SweepGradient
impl RefUnwindSafe for SweepGradient
impl Send for SweepGradient
impl Sync for SweepGradient
impl Unpin for SweepGradient
impl UnsafeUnpin for SweepGradient
impl UnwindSafe for SweepGradient
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