Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Last active October 15, 2018 20:30
Show Gist options
  • Save gskachkov/d96ae73bdc08e87380f5d952dde70011 to your computer and use it in GitHub Desktop.
Save gskachkov/d96ae73bdc08e87380f5d952dde70011 to your computer and use it in GitHub Desktop.
class factor {
constructor(options = {}) {
this.factor = options.factor || 1;
}
animate(currentTime, effect) {
effect.localTime = currentTime * this.factor;
}
};
registerAnimator('factor', factor);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment