Skip to content

ART 23 - Class 3

reading:

read pages 61-68, 79-95, 173-180

homework:
create a drawing using iteration and print out on the laser printer
create an animation using iteration
review decisions and iteration for quiz on monday

presentation: class 3 lecture notes [pdf ]

example files: class 3 example files [zip]

quiz:

//quiz 1, problem 1
//this code should draw
//a black rectange on a white background

size(200, 200);
fill(0);
rect(10,10, 100, 100);
background(255);

//———————————–

//quiz 1, problem 2
//this code should draw three black circles next to each other

size(200, 200);
fill(0);
ellipse(10,100, 20, 20)
ellipse(50,100, 20, 20)
ellipse(100,100, 20, 20)

//———————————-

//quiz 1, problem 3
//this code should draw one black circle

size(200, 200);
fill(0);
ellipse(10,300, 100, 100);

//———————————-

//quiz 1, problem 4
//this code should draw one diagonal line across the window

Size(200, 200);
Line(0,0, 200, 200);

// ———————————

//quiz 1, problem 5
//this code should draw four rectangles in the window

size(200, 200);
background(0);
fill(0);
rect(0,0, 100, 40);
rect(30,50, 20, 10);
rect(100,100, 30, 25);
rect(120,160, 20, 20);