ludus/build/p5_test.mjs
2024-08-02 13:56:37 -04:00

17 lines
252 B
JavaScript

import {run, p5} from "./ludus.mjs"
const code = `
pencolor! (colors :white)
repeat 10 {
repeat 4 {
fd! (500)
rt! (0.25)
}
rt! (0.1)
}`
const result = run(code)
console.log(result.io.stdout.data)
console.log(p5(result.io.turtle.data))