Lesson goal: Zoom in or out of your graphics

Previous: The Cartesian Coordinate System | Home | Next: Introduction

Sometimes your graphics or drawing might be too small or too large. Also, the graphics area extends from -250 to 250 horizontally (along x), and from -175 to +175 vertically (along y). Sometimes this range may be too large or too small. To fix this, you can adjust the zoom of the drawing area using the zoom function.
zoom(number)
Move the mouse over a dotted box for more information.

Now you try. Change the number in the zoom( ) statement and watch the dots on the corner of the square grow and shrink.

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.