Lesson goal: Do some computerized drawing

Previous: Drawing with text | Home | Next: The Cartesian Coordinate System

After you can draw pixels, lines, and circles, why don't you see if you can put them together and draw something? How about a stick figure? Car? House?

To get this to work, you have to visualize your drawing in terms of $(x,y)$ points on the grid, with $(0,0)$ at the center. You can move the mouse pointer over the plotting area (to map out needed $(x,y)$ points) as you create your work. Have fun!

Now you try. See if you can complete the drawing of a full stick figure person.

Type your code here:


See your results here:

The default code on this page will clear the screen, then draw the head, body, and one eye of a stick figure. You can use the zoom command described here to zoom in and out of your figure. Dismiss.
Show a friend, family member, or teacher what you've done!

Here is a share link to your code:

Does your code work? Want to run it on your iPhone?

Here's your code:

  1. Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.

  2. Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into this page

  3. Then click the "Use on iPhone" button that you'll see.