Skip to content

An Origami reference runtime written for a WebGL context

Notifications You must be signed in to change notification settings

origamidl/webgl-runtime

Repository files navigation

Origami WebGL Runtime

This is the official WebGL runtime for the Origami Definition Language.

Usage

Browser

<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>

As a module

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);

About

An Origami reference runtime written for a WebGL context

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published