gram-js

Gram JS

A turtle based geometry library for creating parametric line drawings. Used in the Gram Drawing Language.

Test it out in the playground.

Better documentation coming.

Can be imported like:

import { Turtle, drawTurtle, group } from "https://leomcelroy.com/gram-js/exports.js";

Here are available methods on the Turtle class:

You can reference special points on the Turtle with these methods. “l” stands for left, “c” for center, “r” for right, “t” for top, and “b” for bottom.

lt -- ct -- rt 
 |     |     |        
lc -- cc -- rc   
 |     |     |      
lb -- cb -- rb 

You can also reference: