ludus/build/svg_test.mjs

16 lines
219 B
JavaScript
Raw Normal View History

import {run, svg} from "./ludus.mjs"
const code = `
2024-08-01 22:50:09 +00:00
pencolor! (colors :white)
repeat 10 {
repeat 4 {
fd! (500)
rt! (0.25)
}
rt! (0.1)
}`
const result = run(code)
2024-08-01 22:50:09 +00:00
console.log(svg(result.io.turtle.data))