Learn creative coding writing simple programs

2. Download Processing. Use point() and line()

Download Processing from www.processing.org and do some exercises with point() and line(). We are introduced to using coordinates to access pixels on the screen. A coordinate has a X and a Y value. The X value is the distance from the left border of the display. The Y value is the distance from the top border of the display. Using an X,Y pair you can locate any pixel on the screen. The top left pixel is located at 0,0. The pixel at 10,30 is found at 10 pixels from the left border and 30 pixels from the top border.

Tags: point, line, pixel

Code editor

You can make changes to the code below. Then
Reference
line
point
Questions and comments are welcome! :) But please try to stay close to the topic of this episode. Use the Processing forums for help with your Processing projects (or hire me for help ;-)