]> git.cworth.org Git - zombocom-ai/blobdiff - bus.html
Hook the code panel up to actually execute something
[zombocom-ai] / bus.html
index 845b048ec24039fd7792e2e9c1b81a1a649f7cb4..214174cca0d57069b2991fde27ec3425d795682c 100644 (file)
--- a/bus.html
+++ b/bus.html
        Magic School Bus Central Processor
       </h1>
       <form id="form">
-       <textarea id="code" rows="10" width="100%">t.forward(100);
-t.right(90);
-t.forward(100);
-       </textarea>
+       <textarea id="code" rows="10" width="100%">cr.move_to(10,10);
+cr.line_to(100, 100);
+cr.set_line_width(6);
+cr.stroke();</textarea>
        <button type="submit">Run code</button>
       </form>
       <img id="output"></img>