ludus/build/svg_test.mjs
Scott Richmond 2f5557a552 build
2024-11-03 17:04:04 -05:00

21 lines
233 B
JavaScript

import {run, svg} from "./ludus.mjs"
const code = `
let home = unbox (turtle_state)
fd! (100)
loadstate! (home)
rt! (0.25)
fd! (100)
do turtle_state > unbox
`
const result = run(code)
console.log(svg(result.io.turtle.data))