HW2

screenshot

Still trying to figure out how to embed the code but here is a video.


void setup() {
size(640, 640);
frameRate(18);
background(#7A6F5A);
}
void draw() {
noFill();
float r = random(640);
line(pmouseX,pmouseY,-r+r*2,r);
strokeWeight(r/220);
strokeCap(SQUARE);
if (r > 220)
{ stroke(10,10,10);}
else {
stroke(230);}
tint(r/r);
if (mousePressed){
background(r+100,r+90,r+50);}
}

Leave a Comment.