final poster corrales · ˜oat rect; ˜oat r,g,b,alpha; //button int x =50; int y =50; int w =100;...

2
Graphic Design BFA Montclair, New Jersey G M S U D B F A N J

Upload: others

Post on 09-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Final Poster Corrales · ˜oat rect; ˜oat r,g,b,alpha; //button int x =50; int y =50; int w =100; int h =80; boolean button = false; void setup(){size (800,800); smooth(); noStroke();

Graphic Design BFA Montclair, New Jersey

G

M S U

D B F A

N J

Page 2: Final Poster Corrales · ˜oat rect; ˜oat r,g,b,alpha; //button int x =50; int y =50; int w =100; int h =80; boolean button = false; void setup(){size (800,800); smooth(); noStroke();

�oat rect;�oat r,g,b,alpha;//buttonint x =50;int y =50;int w =100;int h =80;

boolean button = false;

void setup(){ size (800,800); smooth(); noStroke(); background(200,30,0); }

void draw(){ //button!!! if (button){ }else{} �ll (0);} void mousePressed (){ if (mouseX>x && mouseX<x+w && mouseY>y && mouseY<y+h){ button = !button;} �ll(mouseX,mouseX,mouseX,10); noStroke(); ///random clicked squares rect (mouseX,mouseY,mouseX, mouseX);

�ll (0); translate(175,100); for (int i=0;i<6;i++){ for(int j=0;j<6;j++){ if (i==5&&j==2){ �ll (255); }else{ �ll(0); //button again r=random(0,255); g=random(0);

b=random(0); alpha=random(20,50); �ll(r,g,b,alpha); rect(x,y,rect,rect); } rect(i*85,j*85,50, random(25,50)); } } }