# cheat sheet.doc

1 Page
233 Views

School
Carleton University
Department
Computer Science
Course
COMP 1005
Professor
Jason Hinek
Semester
Winter

Description
Can flag Birds Ball in vertical, horizontal, diagonal Array of zoogs PImage flag; int count=0; float x1, y1, x2, y2, x3, y3, radius, speed; class Zoog { int x,y; int flock=(int)random(10, 20); float filla; // Zoog's variables void setup() { int x, y; float fillb; float x,y,w,h,eyeSize; flag = loadImage("canadian_flag.jpg"); void setup() { float fillc; // Zoog constructor size(flag.width, flag.height); size(500, 500); frameRate(5000); background(255); void setup() { Zoog(float tempX, float tempY, float tempW, float tempH, float flag.loadPixels(); size(500, 500); tempEyeSize) { } background(255); x = tempX; } void drawBirds(int x, int y) { x1=random(width); y = tempY; color getColor(int x, int y){ line(x-10, y-10, x, y); y1=random(height); w = tempW; return flag.get(x,y); line(x, y, x+10, y-10); x2=random(width); h = tempH; } } y2=random(height); eyeSize = tempEyeSize; x3=random(width); } void draw() { void draw() { y3=random(height); // Move Zoog x=(int)(random(width)); x=(int)random(10, width-10); radius=20; void jiggle() { y=(int)(random(height)); speed=1; x = x + random(-1,1); y=(int) random(10, height-10); filla=(random(255)); y = y + random(-1,1); fill(getColor(x, y)); if (count
More Less

Related notes for COMP 1005

Log In

OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view

OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.

Request Course
Submit