Not quite an Etch-A-Sketch
// if I could set a flag to prevent the canvas from clearing
// and the turtle jumping to (0,0) each time I move a slider
// then this little program would work like an Etch-A-Sketch
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax Canvas.setpenopacity(1); // if I could set a flag to prevent the canvas from clearing // and the turtle jumping to (0,0) each time I move a slider // then this little program would work like an Etch-A-Sketch // Global code will be evaluated once. const turtle = new Turtle(); const x=0; //min=-100 max=100 step=0.5 const y=0; //min=-100 max=100 step=0.5 turtle.pendown() turtle.goto(x,y) turtle.penup()