Lesson goal: Learn to draw simple computer graphics

Previous: Draw something! | Home | Next: Zoom in or out

In math, you'll learn about the Cartesian Coodinate System, which is a graphical method of showing (x,y) points. The x and y axes cross at x=0 and y=0, or (0,0), which is called the origin. X-values extend in the positive direction toward the right, and negative values are toward the left. Y-values extend positive upward, and negative downward.

You can practice seeing where (x,y) points fall using this lesson. The two line statements in the code box will draw the x and y axes. Try plotting some points using the pset function, as in pset(5,5) or pset(-30,20). Use a lot of pset statement to better understanding where points of a given (x,y) pair will appear.

Now you try. Plot some points using pset(x,y).

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.