ludus/build/svg_test.mjs
Scott Richmond 066edb00b5 build
2024-11-03 16:45:20 -05:00

23 lines
254 B
JavaScript

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