pub struct RadialGradient(pub Gradient);Expand description
A circular radial gradient; object bounds can stretch it elliptically.
Tuple Fields§
§0: GradientImplementations§
Source§impl RadialGradient
impl RadialGradient
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 RadialGradient
impl Clone for RadialGradient
Source§impl Debug for RadialGradient
impl Debug for RadialGradient
Source§impl From<RadialGradient> for Paint
impl From<RadialGradient> for Paint
Source§fn from(value: RadialGradient) -> Self
fn from(value: RadialGradient) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RadialGradient
impl PartialEq for RadialGradient
impl StructuralPartialEq for RadialGradient
Auto Trait Implementations§
impl Forget for RadialGradient
impl Freeze for RadialGradient
impl Move for RadialGradient
impl RefUnwindSafe for RadialGradient
impl Send for RadialGradient
impl Sync for RadialGradient
impl Unpin for RadialGradient
impl UnsafeUnpin for RadialGradient
impl UnwindSafe for RadialGradient
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