STEP 4: An Etch-a-Sketch draws while it moves. To do that in code, we need to tell the sprite to draw!

  • Click on and drop Pen Down at the bottom of your program.
  • Now, whenever the point moves, it will draw a green line behind it!
  • Click Run, then Submit and Next to add code that will let the point move. Remember to do this at the end of every activity!

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background_color("black") # sprite = codesters.Point(x, y) sprite = codesters.Point(50, 100) sprite.set_color("green")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)