This is a Javascript library for modeling origami.
This library assists in encoding, modifying, and rendering origami models. Origami models are encoded in FOLD format, which is a mesh based data structure. Rabbit Ear contains methods for modifying FOLD graphs, a math library, an SVG and WebGL rendering library, and various methods for making origami-related calculations.
Rabbit Ear source code is distributed as an ES6 module as individual files, and as a single UMD/CommonJS bundled file. Both are available when you download the latest release, or install the package from npm.
npm install rabbit-ear
Alternatively, here is a CDN for the UMD/CommonJS bundle
https://rabbit-ear.github.io/rabbit-ear/rabbit-ear.js
ES6 module
https://rabbit-ear.github.io/rabbit-ear/src/index.js
The docs contain technical references for coding with this library.
FOLD validator/viewer validate and visualize a FOLD file, the mesh file format used by this library.
GNU GPLv3