Skip to content

Instantly share code, notes, and snippets.

@ydaniv
Created August 20, 2019 11:25
Show Gist options
  • Save ydaniv/8dc838165ae4cff4614fa0f16d7c1870 to your computer and use it in GitHub Desktop.
Save ydaniv/8dc838165ae4cff4614fa0f16d7c1870 to your computer and use it in GitHub Desktop.
Introducing Kampos Examples :: ticker simple
import {Kampos, effects, Ticker} from 'kampos';
const ticker = new Ticker();
const kampos = new Kampos({target, effects: [effects.hueSaturation()], ticker});
const kampos2 = new Kampos({target2, effects: [effects.hueSaturation()], ticker});
// rest of drawing logic ...
ticker.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment