pub enum Fill {
Mesh {
rows: Vec<Vec<([f32; 2], Color)>>,
pos: Point2D,
main_axis: Vector2D,
off_axis: Vector2D,
},
Blend(Vec<(Fill, f32)>),
Solid(Color),
Gradient {
gradient_type: GradientType,
pos: Point2D,
main_axis: Vector2D,
off_axis: Vector2D,
stops: Vec<GradientStop>,
},
}Expand description
Fill style for a tessellated vector path.
Variants§
Mesh
Row-connected mesh in normalized paint coordinates. The axes map that domain to scene coordinates; row order fixes connectivity independently of each anchor’s x/y position.
Blend(Vec<(Fill, f32)>)
Weighted premultiplied paint mixture, sampled before compositing.
Solid(Color)
Gradient
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe for Fill
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.