Skip to content

Instantly share code, notes, and snippets.

@ydaniv
Last active August 20, 2019 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ydaniv/cb8c0ad13dadf2cbca844c5ac3b9a361 to your computer and use it in GitHub Desktop.
Save ydaniv/cb8c0ad13dadf2cbca844c5ac3b9a361 to your computer and use it in GitHub Desktop.
Introducing Kampos Examples :: hue simple
import {Kampos, effects} from 'kampos';
const target = document.querySelector('canvas');
const media = document.querySelector('video');
const hueSaturation = effects.hueSaturation();
const kampos = new Kampos({target, effects: [hueSaturation]});
hueSaturation.hue = 90;
kampos.setSource(media);
kampos.play();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment