2014年9月15日 星期一

01161160_劉景晟,hw01,Week01

size(600,400);
background(9,39,52);
fill(255,255,255);
ellipse(500,100,50,50);
fill(30,72,90);
rect(0,300,600,10);
fill(24,72,78);
rect(0,310,600,20);
fill(15,60,66);
rect(0,330,600,25);
fill(10,48,52);
rect(0,355,600,30);
fill(6,35,40);
rect(0,385,600,15);
stroke(255,255,255);
strokeWeight(4);
int a=22;int b=31;
for(int i=1;i<30;i=i+5){
  point(a,b);
  b=b+25+i;
  a=a+b+15+i;
}
strokeWeight(3);
a=18;b=260;
for(int i=1;i<30;i=i+5){
  point(a,b);
  b=b-25+i;
  a=a+b/2+5+i;
}
strokeWeight(2);
a=30;b=272;
for(int i=1;i<30;i=i+5){
  point(a,b);
  b=b-40+i;
  a=a+b/2+15+i;
}
strokeWeight(3.5);
a=50;b=80;
for(int i=1;i<30;i=i+5){
  point(a,b);
  b=b+40-i;
  a=a+b+11+i;
}
strokeWeight(2.5);
a=62;b=108;
for(int i=1;i<30;i=i+5){
  point(a,b);
  b=b+50-i;
  a=a+b+8+i;
}
strokeWeight(4.5);
a=108;b=223;
for(int i=1;i<25;i=i+5){
  point(a,b);
  b=b-56-i;
  a=a+b/3+80-i;
}

沒有留言:

張貼留言