Home

Coordinate system

Read

If you want more info, also try

Important functions and variables

What you’ll need to know for test 1

  • How to draw various shapes in specific locations (given by pixel coordinates) and “relative” locations, e.g., “middle of the window” (use width/2 and height/2 for the middle of the window).

  • How to draw an arc from specific start and stop radians.

  • The differences among rectMode(CENTER), rectMode(CORNER), rectMode(RADIUS), and the same for ellipseMode.

CSCI 111 material by Joshua Eckroth is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. Source code for this website available at GitHub.