Shake
shakeA camera shake on each hit that dies out fast.
Install
$ npx paper-motion add shakeCopies the code to moves/ in your project, yours to edit.
Tune it, then add it to your kit
0.0s
Parameters
amount
rot
decay
freq
import { shake } from './moves/shake.js';
// in s.update(t)
shake(el, t);Defaults
Notes
- A camera shake on each time in
hits, dying out atdecay. - Put hits on the beat or on a sound cue, never on every beat.
Spec
- Id
- shake
- Type
- Camera and energy
- Version
- 1.0.0
- Engine
- >=0.2.0
- License
- MIT
- Data
- r/shake.json