Mohammad Rahat Week 2 HW (Open processing isn’t letting me upload again. Idk if I’m doing something wrong)

Part 1:

int r = 225;
int g = 225;
int b = 225;
boolean sunny = false;
float x = 12.0;
float z;
z = x+25;
y = z+x;

Part 2:

int s = 400;
int x = 0;
int y = 200;
int z = 400;
int a = 225;
int b = 100;
int c = 20;
float r = random(200,400);

void setup() {
size(s,s);
background(x);
}

void draw() {
fill(x, x, a);
stroke(x, a, x);
ellipse(mouseX, mouseY, y, y);
rect(30, c, b, b);
rect(270, c, b, b);
fill(245,2,2);
rect(130,r,100,50);
}

void mousePressed() {
background(a, x, x);
}

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *