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

Try to stay close to the topic of this episode. Use the Processing forums for help with unrelated Processing projects (or hire me for help ;-)

To indicate that a word in your comment is code, use the `backtick`. Example
Do `float` and `int` smell similar?
To highlight code blocks, surround it with ``` code-fences ``` like this:
``` void setup() { size(600, 600); } ```