2012年9月22日 星期六

Week01,HW01

1.1


1.2

PImage img;  
int x=10,y=10;
img = loadImage("http://static.zerochan.net/IA.full.978309.jpg");  
size(img.width+2*x,img.height+2*y);  
background(255,255,0);
image(img,x,y);

 
1.3


size(600,600);
background(255,255,255);
fill(165,202,57);
noStroke();
ellipse(300, 200, 200, 200);
fill(255,255,255);
rect(200, 200, 200, 100);
ellipse(260, 150, 20, 20);
ellipse(340, 150, 20, 20);
fill(165,202,57);
rect(200, 210, 200, 150);
ellipse(225, 360, 50, 50);
ellipse(375,360, 50, 50);
rect(220, 355, 150, 30);
ellipse(345,440, 50, 50);
ellipse(255,440, 50, 50);
rect(230, 380, 50, 60);
rect(320, 380, 50, 60);
ellipse(435,320, 50, 50);
ellipse(435,230, 50, 50);
ellipse(165,320, 50, 50);
ellipse(165,230, 50, 50);
rect(140, 230, 50, 90);
rect(410, 230, 50, 90);
pushMatrix();
translate(380,70);
rotate(PI/6);
rect(0, 0, 10, 60);
popMatrix();
pushMatrix();
translate(220,73);
rotate(PI*1.85);
rect(0, 0, 10, 60);
popMatrix();
ellipse(224,70, 10, 10);
ellipse(385,71, 10, 10);


 

1 則留言: