Skip to main content

ParticleParameter

Struct ParticleParameter 

Source
pub struct ParticleParameter {
Show 52 fields pub scale: Vector2, pub startcolor: Color, pub endcolor: Color, pub speed: f32, pub speed2: f32, pub angle: f32, pub angle_variance: f32, pub use_gravity: bool, pub gravity: Vector2, pub use_offset: bool, pub offset: Vector2, pub offset2: Vector2, pub use_rotation: bool, pub rotation: f32, pub rotation2: f32, pub rotation_add: f32, pub rotation_add2: f32, pub use_rotation_trans: bool, pub rotation_factor: f32, pub end_life_time_per: f32, pub use_tan_accel: bool, pub tangential_accel: f32, pub tangential_accel2: f32, pub use_color: bool, pub init_color: Color, pub init_color2: Color, pub use_trans_color: bool, pub trans_color: Color, pub trans_color2: Color, pub use_init_scale: bool, pub scale_range: Vector2, pub scale_factor: f32, pub scale_factor2: f32, pub use_trans_scale: bool, pub transscale: Vector2, pub scale_range2: Vector2, pub transscale_factor: f32, pub transscale_factor2: f32, pub delay: f32, pub use_p_gravity: bool, pub gravity_pos: Vector2, pub gravity_power: f32, pub use_alpha_fade: bool, pub alpha_fade: f32, pub alpha_fade2: f32, pub use_trans_speed: bool, pub trans_speed: f32, pub trans_speed2: f32, pub use_turn_direc: bool, pub direc_rot_add: f32, pub user_override_r_seed: bool, pub override_r_seed: i32,
}

Fields§

§scale: Vector2§startcolor: Color§endcolor: Color§speed: f32§speed2: f32§angle: f32§angle_variance: f32§use_gravity: bool§gravity: Vector2§use_offset: bool§offset: Vector2§offset2: Vector2§use_rotation: bool§rotation: f32§rotation2: f32§rotation_add: f32§rotation_add2: f32§use_rotation_trans: bool§rotation_factor: f32§end_life_time_per: f32§use_tan_accel: bool§tangential_accel: f32§tangential_accel2: f32§use_color: bool§init_color: Color§init_color2: Color§use_trans_color: bool§trans_color: Color§trans_color2: Color§use_init_scale: bool§scale_range: Vector2§scale_factor: f32§scale_factor2: f32§use_trans_scale: bool§transscale: Vector2§scale_range2: Vector2§transscale_factor: f32§transscale_factor2: f32§delay: f32§use_p_gravity: bool§gravity_pos: Vector2§gravity_power: f32§use_alpha_fade: bool§alpha_fade: f32§alpha_fade2: f32§use_trans_speed: bool§trans_speed: f32§trans_speed2: f32§use_turn_direc: bool§direc_rot_add: f32§user_override_r_seed: bool§override_r_seed: i32

Trait Implementations§

Source§

impl Clone for ParticleParameter

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ParticleParameter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ParticleParameter

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for ParticleParameter

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ParticleParameter

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more