Playground
Write Petal, watch it run
Edit the program on the left; it compiles to WASM and runs live on the right. Pick an example to start, then make it yours and share a link.
compiling petal…
⌘/Ctrl + Enter to run · click the canvas / use arrow keys for interactive sketches · changes only compile when you Run (so a half-typed program can't crash the page). Browse all examples →