Skip to content

Instantly share code, notes, and snippets.

@manegame
Last active December 14, 2017 16:44
Show Gist options
  • Save manegame/b11577ea4231945e6b63b7348bdbe512 to your computer and use it in GitHub Desktop.
Save manegame/b11577ea4231945e6b63b7348bdbe512 to your computer and use it in GitHub Desktop.
Basic how to

1: Set up https://github.com/kabk/go-theses-17-manus-nijhoff/blob/8b09576a614fcb4bb7e11f15efdb92ebe905f278/src/js/app.js#L131

  • Initialize cam
  • attach to an element in the DOM
  • Take the first snap when load event fires

2: Do stuff with the result https://github.com/kabk/go-theses-17-manus-nijhoff/blob/8b09576a614fcb4bb7e11f15efdb92ebe905f278/src/js/cam.js

takeSnapshot function does:

  • take a snap
  • result (data_uri) gets added to an array of images

This is some basic stuff you can do with this. I'm not sure whether it serves your purpose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment