https://github.com/spite/looper
Looperepool
https://github.com/spite/looper
Last synced: about 1 year ago
JSON representation
Looperepool
- Host: GitHub
- URL: https://github.com/spite/looper
- Owner: spite
- License: mit
- Created: 2018-03-07T00:01:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-04T09:41:09.000Z (over 6 years ago)
- Last Synced: 2025-03-28T08:08:25.614Z (about 1 year ago)
- Language: JavaScript
- Size: 13 MB
- Stars: 957
- Watchers: 48
- Forks: 86
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# looper
Looperepool, a tool to create looperinos
Demo: https://spite.github.io/looper/#4 (Chrome and Safari Tech Preview only)
Steps:
- Point a web server to the root folder of the project, for example in port 8000
- Create a loop script on the loops folder, let's say foo.js. The script is basically an ES6 module that has to export three things:
- a ```draw``` method, that can take an optional argument timeStart, in case you want to reset the animation when capture starts
- ```loopDuration```, the duration of the loop in seconds. This will tell the capturer how many frames to get
- ```canvas```, the HTMLCanvasElement to use for display and capture.
- 1.js is an example of 2D Canvas
- 4.js is an example of three.js
- Open localhost:8000#foo