pub struct Gradient {
pub kind: GradientKind,
pub start: Animated<DVec2>,
pub end: Animated<DVec2>,
pub stops: Animated<GradientStops>,
}Expand description
A gradient in the node’s local space. The evaluator folds the owning
shape’s world transform into start/end before baking vertex colors.
Fields§
§kind: GradientKind§start: Animated<DVec2>Linear: start point. Radial: center.
end: Animated<DVec2>Linear: end point. Radial: circumference point (radius = |end-start|).
stops: Animated<GradientStops>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gradient
impl<'de> Deserialize<'de> for Gradient
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Gradient
Auto Trait Implementations§
impl Freeze for Gradient
impl RefUnwindSafe for Gradient
impl Send for Gradient
impl Sync for Gradient
impl Unpin for Gradient
impl UnsafeUnpin for Gradient
impl UnwindSafe for Gradient
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