< 454 Home

In this assignment you are going to create a Processing sketch that simply renders a basic still life. Use a still life from art history and copy it using only shape functions such as ellipse();, quad(); and beginShape();/endshape();. Make your canvas size at least 2000 on one axis, and add a save("myimage.tif"); function at the end of your code to create a tif file to print. Print that file to a 8 x 11 sheet of paper. Use photoshop to super impose your code over the or below the image (optional). Email your tif file and a write-up to patterson53@gapps.marshall.edu.

Due 1-28-13
20 points

pants

The following is the Processing code for the above sketch based on a Magritte painting.

size(2000, 3000);
background(#726051);
smooth();
noStroke();

// left back leg
fill(#3e2a24);
beginShape();
vertex(450, 1899);
vertex(470, 2430);
vertex(490, 2460);
vertex(535, 2420);
vertex(535, 1909);
endShape();

// right back leg
fill(#3e2a24);
beginShape();
vertex(1424, 1912);
vertex(1466, 2450);
vertex(1500, 2478);
vertex(1510, 2440);
vertex(1500, 1900);
endShape();

fill(#8f6844);
rect(0, 2500, 2500, 1000);

fill(#af9b7c);
beginShape();
vertex(125, 1600);
vertex(130, 1840);
vertex(340, 1940);
vertex(1020, 2016);
vertex(1640, 1944);
vertex(1869, 1840);
vertex(1889, 1801);
vertex(1883, 1608);
vertex(1031, 1600);
vertex(125, 1600);
endShape();

//left front leg
fill(#ae9e8e);
beginShape();
vertex(277, 1700);
vertex(304, 2811);
vertex(350, 2840);
vertex(373, 2799);
vertex(395, 1750);
endShape();

//right front leg
beginShape();
vertex(1580, 1715);
vertex(1607, 2764);
vertex(1630, 2811);
vertex(1680, 2799);
vertex(1680, 1700 );
endShape();

fill(#bcac9c);
ellipse(1000, 1630, 1862, 400);

fill(#404446);
beginShape();
vertex(770, 330);
vertex(864, 312);
vertex(1000, 300);
vertex(1192, 320);
vertex(1190, 1112);
vertex(1176, 1352);
vertex(1148, 1644);
vertex(1068, 1696);
vertex(1012, 1616);
vertex(984, 808);
vertex(960, 1196);
vertex(944, 1612);
vertex(852, 1676);
vertex(788, 1628);
vertex(772, 1396);
vertex(748, 946);
vertex(748, 920);
vertex(764, 400);
endShape();

save("myrenderedcircle.tif");