Your First Program
Open a new sketch (File/New)
There are a number of buttons on the top (Run, Save etc.) and a large area where you type in your program commands. Type in the line:
size(100,300);
Helpful Links
Fun Programming #1 - Introduction
Processing.org - The Processing Environment
Processing,org Reference - size()
Run the program by clicking on the “RUN” button on the top of the sketch (triangle pointing to the right -it looks like the play button on a video).
Congrats! You wrote your first program. You should see a tall skinny window appear on your screen, 100 pixels wide by 300 pixels tall.
Try making the window a different size.
Remove the semicolon at the end of the line - what happens?
Change the code to make a screen that is 400 pixels wide and 50 pixels tall.
Save your program.
Read about the size() function in the Processing Reference (in Processing look under HELP/Reference).