This is the official WebGL runtime for the Origami Definition Language.
<script type="application/javascript" src="browser.min.js"></script>
<script type="application/origami">
# paper: square
--bottom: --(.b .c)
fold .a to .b
fold --bottom to --^1
</script>
import OrigamiRuntime from '@origamidl/webgl';
const code = `
# paper: square
--bottom: --(.b .c)
fold .a to .b
fold --bottom to --^1
`;
let runtime = new OrigamiRuntime();
runtime.parse(code);