2015年1月25日 星期日
week01
void setup() {
size(400, 400);
background(0);}
void draw() {
fill(255,0,0);
rect(50,50,300,300);
fill(0,255,0);
ellipse(200,200,250,250);
fill(0,0,255);
triangle(120, 270, 200, 100, 280, 270);
}
2014年9月15日 星期一
Week01
void setup()
{
size(600,400);
background(0,0,0);
}
void draw()
{
strokeWeight(1);
stroke(15,15,15);
fill(0,0,0);
ellipse(150,250,600,600);
stroke(30,30,30);
fill(0,0,0);
ellipse(150,250,440,440);
stroke(50,50,50);
fill(0,0,0);
ellipse(150,250,300,300);
stroke(65,65,65);
fill(0,0,0);
ellipse(150,250,180,180);
stroke(80,80,80);
fill(0,0,0);
ellipse(150,250,70,70);
stroke(50,140,100);
line(150,250,250,370);
line(150,250,400,385);//GREEN
stroke(255,240,0);
line(150,250,370,210);
line(150,250,250,285);//YELLOW
stroke(255,200,15);
line(150,250,550,50);
//line(150,250,250,285);
}
week01
size (600,300);
background (9,39,20);
fill (255,255,255);
rect (0,100,600,15);
fill (255,255,255);
rect (0,200,600,15);
fill (255,255,255);
rect (0,300,600,15);
fill (255,255,255);
rect (200,0,15,600);
fill (255,255,255);
rect (400,0,15,600);
fill (255,255,255);
ellipse (100,50,50,50);//circle1
fill (255,255,255);
ellipse (300,50,50,50);//circle2
fill (255,0,0);
ellipse (500,50,50,50);//circle3
fill (255,0,0);
ellipse (100,150,50,50);//circle4
fill (255,255,255);
ellipse (300,150,50,50);//circle5
fill (255,0,0);
ellipse (500,150,50,50);//circle6
fill (255,255,255);
ellipse (100,250,50,50);//circle7
fill (255,0,0);
ellipse (300,250,50,50);//circle8
fill (255,0,0);
ellipse (500,250,50,50);//circle9
stroke(0,0,0);
strokeWeight(4);
line(500,0,500,500);//line
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;
}
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;
}
01160093_楊育維, HW01, Week01
size(600,400);
background(9,39,52);
fill(16,60,77);
rect(0,300,600,10);
fill(10,40,52);
rect(0,310,600,20);
fill(5,20,26);
rect(0,330,600,30);
fill(3,40,52);
rect(0,310,600,20);
fill(255,255,255);
ellipse(400,100,50,50);
fill(255,0,0);
stroke(255,0,0);
strokeWeight(4);
point(200,100);
line(100,200,300,200);
訂閱:
文章 (Atom)




























