pub struct Comfort {
pub motion: f32,
pub glitch_floor: f32,
}Fields§
§motion: f32§glitch_floor: f32Implementations§
Source§impl Comfort
impl Comfort
pub const FULL: Self
pub fn reduced(motion: f32) -> Self
pub fn amount(&self) -> f32
pub fn shake(&self, value: f32) -> f32
pub fn blur(&self, displacement: [f32; 2]) -> [f32; 2]
pub fn flash(&self, alpha: f32) -> f32
pub fn hit_stop(&self, stop: HitStop) -> HitStop
pub fn glitch(&self, strength: f32) -> f32
Trait Implementations§
impl Copy for Comfort
impl StructuralPartialEq for Comfort
Auto Trait Implementations§
impl Freeze for Comfort
impl RefUnwindSafe for Comfort
impl Send for Comfort
impl Sync for Comfort
impl Unpin for Comfort
impl UnsafeUnpin for Comfort
impl UnwindSafe for Comfort
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