Screen Size
< ........ Tutorial 01 ........ >
Use the size() function to set the size of the canvas.
In the code pane, type:
size(80, 60);
Then click Run to restart the sketch.
• Missing the ';' will cause: Unexpected token: null
The displayed canvas is now smaller, 80 x 60 pixels.
Change the code to:
size(300, 200);
Re-run the sketch.
The 300 x 200 canvas displays in an enlarged window.