From 73b2343963698e7aa9cca7606fb37feb3c00f382 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Fri, 2 Aug 2024 13:56:37 -0400 Subject: [PATCH] add p5 test file --- build/p5_test.mjs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 build/p5_test.mjs diff --git a/build/p5_test.mjs b/build/p5_test.mjs new file mode 100644 index 0000000..f77d863 --- /dev/null +++ b/build/p5_test.mjs @@ -0,0 +1,16 @@ +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))