Lesson goal: Learn to draw simple computer graphics

Previous: Drawing lines | Home | Next: Drawing with text

After you can draw pixels and lines, the next step will be drawing circles. The computer knows how to automatically draw a circle, centered at any (x,y) point with some radius. Circles are drawn using the circle function, which works like this:
Move the mouse over a dotted box for more information.

Now you try. Plot a lines using circle.

Type your code here:

See your results here:

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.