pub struct TornadoParticle {}Expand description
The Tornado particle class (Graphics::Particle subclass): particles spiralling up a funnel.
Colours are BGRA bytes, times System::Time microseconds. See docs/PARTICLES.md.
Original: FUN_1400d76e0, FUN_1400d7940.
Fields§
§max_particles: u32The most particles alive at once.
material: Option<String>The material the particles are drawn with.
radius: f32The scale of the spiral’s radius.
rise: f32The rise over a particle’s life.
wobble: f32The wobble’s radius.
wobble_turn: f32The wobble’s turn, in degrees a second.
spiral_turn: f32The spiral’s turn over a particle’s life.
rate: f32Particles made per second.
life: [f32; 2]A particle’s life in seconds (base ± range).
size: [f32; 2]The smallest and largest size.
size_scale: f32The size per unit of radius.
colors: [u32; 2]The start and end colours.
fade_in: i64How long it fades in.
fade_out: i64How long it fades out.
Trait Implementations§
Source§impl Clone for TornadoParticle
impl Clone for TornadoParticle
Source§fn clone(&self) -> TornadoParticle
fn clone(&self) -> TornadoParticle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TornadoParticle
impl Debug for TornadoParticle
Source§impl PartialEq for TornadoParticle
impl PartialEq for TornadoParticle
impl StructuralPartialEq for TornadoParticle
Auto Trait Implementations§
impl Freeze for TornadoParticle
impl RefUnwindSafe for TornadoParticle
impl Send for TornadoParticle
impl Sync for TornadoParticle
impl Unpin for TornadoParticle
impl UnsafeUnpin for TornadoParticle
impl UnwindSafe for TornadoParticle
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