From 6d80b6118f40b891f15e53cb24ca4a04a60ac926 Mon Sep 17 00:00:00 2001 From: leomcelroy Date: Tue, 14 Nov 2023 10:29:29 -0500 Subject: [PATCH] update guide/workshop default text --- astro/src/components/Help.tsx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/astro/src/components/Help.tsx b/astro/src/components/Help.tsx index c657e9d36..1ef6cbe75 100644 --- a/astro/src/components/Help.tsx +++ b/astro/src/components/Help.tsx @@ -42,7 +42,26 @@ export default function Help({ if (workshop === null) return - if (confirm("Clear text editor?")) loadCodeFromString(""); + if (confirm("Clear text editor?")) loadCodeFromString(`// Check the workshop tab to get started + +const width = 125; +const height = 125; + +setDocDimensions(width, height); + +const testTurtle = createTurtle(); + +testTurtle.forward(100); + +testTurtle.translate( + [width/2, height/2], + testTurtle.cc +); + +drawTurtles([ + testTurtle +]); +`); const res = await fetch(