CS 101
Intro to Processing
Lecture 3
Processing - What is it?
Processing - What is it?
Processing - What is it?
Processing - What is it?
Processing - The Textbook
Processing - processing.org
Processing - processing.org
Processing - How does it work?
Processing
ellipse(50, 50, 80, 80);
Processing
ellipse(50, 50, 80, 80);
ellipse(50, 50, 80, 80);
The Canvas
Left/Right is the X axis
Up/Down is the Y axis
A particular position on the canvas is specified by by an X position and a Y position (coordinates)
This particular processing program canvas is 600 pixels wide and 400 pixels tall
Set size with: size(x, y);
A particular position on the canvas is specified by by an X position and a Y position (coordinates)
For Example...
X=0, Y=0
X=300, Y=0
X=0, Y=200
X=???, Y=???
X=100, Y=100
X=???, Y=???
X=320, Y=200
X=???, Y=???
X=500, Y=370
ellipse(50, 50, 80, 80);
Three ellipses
ellipse(?, ?, ?, ?);
ellipse(?, ?, ?, ?);
ellipse(?, ?, ?, ?);
ICA
Three ellipses
ellipse(?, ?, ?, ?);
ellipse(?, ?, ?, ?);
ellipse(?, ?, ?, ?);
ICA
Processing
rect(x, y, w, h);
triangle(x1, y1, x2, y2, x3, y3);
line(x1, y1, x2, y2);
point(x, y);
Functions
Functions
Functions
Drawing a simple canvas
Write a small processing program that creates the following canvas
Remember:
ICA
Functions
Functions
Functions
Drawing a Snowman
ICA
Drawing a Snowman
ICA
Processing - Materials