pub enum Preset {
Show 13 variants
Sparks,
Embers,
Dust,
Motes,
Snow,
Rain,
Smoke,
Fire,
Confetti,
Fireworks,
Fireflies,
LogoDissolve,
LogoAssemble,
}Expand description
Curated, independently configurable particle recipes.
Variants§
Sparks
Tapered HDR ballistic burst.
Embers
Cooling, upward-moving glowing embers.
Dust
Slow depth-aware dust.
Motes
Soft floating motes.
Snow
Three parallax depth layers of wind-driven snow.
Rain
Stretched rain with collision-triggered splashes.
Smoke
Expanding procedural smoke sprites.
Fire
Buoyant procedural fire cores.
Confetti
Flipping, colored falling quads.
Fireworks
Rocket death, spark burst, then secondary spark deaths.
Fireflies
Drifting and breathing light points.
LogoDissolve
Color-preserving vector surface dispersal.
LogoAssemble
Color-preserving vector surface convergence.
Implementations§
Source§impl Preset
impl Preset
Sourcepub fn simulation(
self,
options: PresetOptions,
) -> Result<ParticleSimulationBuilder, ValidationError>
pub fn simulation( self, options: PresetOptions, ) -> Result<ParticleSimulationBuilder, ValidationError>
Starts a lazy simulation; callers can append operators, replace style or override limits.
Trait Implementations§
impl Copy for Preset
impl Eq for Preset
impl StructuralPartialEq for Preset
Auto Trait Implementations§
impl Forget for Preset
impl Freeze for Preset
impl Move for Preset
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnsafeUnpin for Preset
impl UnwindSafe for Preset
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