#[non_exhaustive]pub enum PaintDesc {
Solid,
Linear {
start: Vec2,
end: Vec2,
start_color: Color,
end_color: Color,
},
Radial {
center: Vec2,
radius: f32,
start_color: Color,
end_color: Color,
},
Sweep {
center: Vec2,
start_color: Color,
end_color: Color,
},
}Expand description
How a VectorMesh is painted. Mirrors the Brush variants;
gradient endpoints live in the mesh’s local space.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Solid
Use per-vertex color.
Linear
Two-stop linear gradient in the mesh’s local space.
Radial
Radial gradient centered at center (mesh-local) with radius.
Sweep
Angular sweep around center (mesh-local), clockwise from 3 o’clock.
Trait Implementations§
impl Copy for PaintDesc
impl StructuralPartialEq for PaintDesc
Auto Trait Implementations§
impl Freeze for PaintDesc
impl RefUnwindSafe for PaintDesc
impl Send for PaintDesc
impl Sync for PaintDesc
impl Unpin for PaintDesc
impl UnsafeUnpin for PaintDesc
impl UnwindSafe for PaintDesc
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