paper-motion

Shake

shake

A camera shake on each hit that dies out fast.

Install
$ npx paper-motion add shake

Copies 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 at decay.
  • 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

Related