p5* Click color change

function setup() { createCanvas (400, 400) } function draw() { if (mouseIsPressed) { background(53); } else { background(50, 80, 300) } r = map (mouseX,0,400,255,55) b = map (mouseX,0,400,55,255) g = map (mouseX,0,400,55,255) if (mouseIsPressed) { fill(35,0,100); } else { fill (r,0,b); } stroke (0,0,0) rect (70,230,50,200)//top left// //x position, y position, width, height// rect …

The Arab Spring: A Year Of Revolution

Arab Spring is the momentum in Tunisia which set off uprisings across the Middle East. It is very uplifting to know that those dictatorship countries are beginning to speak up for themselves and against the unfair treatment their leaders create. I believe every country should be like the united states, where people have rights and …

p5* color change

    var r; var g var b; function setup() { createCanvas (550,500); background (255,255,255); } function draw() { strokeWeight (3) fill (r,g,b) rect (200,200,10,-50); if(mouseX<100){ r=75 g=45 b=135 } if (mouseX>100){ r=25 g=55 b=175 } if (mouseX>100){ r=10 g=30 b=80 } fill (r,g,b) triangle (200,200,300,200,250,120); if(mouseX<100){ r=80 g=85 b=90 } if (mouseX>100){ r=95 g=100 …

p5* character

function setup() { createCanvas(400,400) } function draw() { background(20,40,60) fill (100,300,300) rect(mouseX-40,mouseY+35,80,100)//head// rect(mouseX-25,mouseY+140,10,40) rect(mouseX+15,mouseY+140,10,40) rect(mouseX-40,mouseY-70,100,100) fill(0,0,0) rect(mouseX-20,mouseY-35,40,30) rect(mouseX+20,mouseY-35,40,30) rect(mouseX+25,mouseY+10,10,10) }

‘Virtual Community’ vs ‘Real Community’

Haley Campbell 12-5-16 NMD 100 Michael Scott Is the experience of a virtual community any different from the experience of a real community?             In order to compare and contrast a "virtual community" with a "real community" we must first understand the meanings of community, real, and virtual. A community is broadly defined as a …

p5* create shapes

function setup() { createCanvas(400, 400); } function draw() { background (222,230,200); strokeWeight (7); stroke (47,110,17);//first rect outline// fill (11, 81, 91);//first rect color// rect (50, 50, 50, 50);//first rectangle// strokeWeight (5); stroke (47,110,17);//mid circle outline// fill (11, 81, 91);//mid circle color// ellipse (200, 200, 200, 200);//mid circle// strokeWeight (7); stroke (47,110,17);//second rect outline// fill (11, …