DOWNLOAD
To install, download this .zip file. That is all.
folder contents:
- creasepattern.js / creasepattern.min.js: the source
- mine/: a folder for your sketches. look for the example in here.
- examples/: fully-functional examples, run these in your browser.
- files/: some crease patterns in .svg, .opx, .fold formats.
This folder can live anywhere on your computer, as long as the files inside the folder are preserved.
YOUR FIRST APP
var project = new OrigamiPaper("canvas");
project.reset = function(){
// this.cp
// this.draw();
}
project.reset();
project.onFrame = function(event) { }
project.onResize = function(event) { }
project.onMouseDown = function(event){ }
project.onMouseUp = function(event){ }
project.onMouseMove = function(event) { }
OFFLINE USE
This crease pattern data structures are fully self-contained and will run offline. Visualization however is made possible by Paper.js.
The examples link to Paper.js on a server-hosted CDN, if you download paper.js separately, and place it alongside this library, all content is able to be run and visualized offline.