void setup(){
size(600,600);
}
float rrr;
void draw(){
background(255,255,255);
translate(300,300);
fill(0,125,125);
ellipse(0,0,350,350);
fill(300,200,0);
ellipse(0,0,310,310);
fill(125,125,0);
ellipse(0,0,270,270);
fill(255,255,255);
ellipse(0,0,230,230);
fill(255,0,0);
rotate(rrr);rrr+=0.02;
for(int i=0;i<20;i++){
rotate( PI/10);
ellipse(100,0,150,30);
}
}
size(600,600);
}
float rrr;
void draw(){
background(255,255,255);
translate(300,300);
fill(0,125,125);
ellipse(0,0,350,350);
fill(300,200,0);
ellipse(0,0,310,310);
fill(125,125,0);
ellipse(0,0,270,270);
fill(255,255,255);
ellipse(0,0,230,230);
fill(255,0,0);
rotate(rrr);rrr+=0.02;
for(int i=0;i<20;i++){
rotate( PI/10);
ellipse(100,0,150,30);
}
}
void setup(){
size(600,600);
}
float rrr;
void draw(){
background(255,255,255);
if (mousePressed){
translate(mouseX,mouseY);
}
else{
translate(300,300);
}
fill(0,125,125);
ellipse(0,0,350,350);
fill(300,200,0);
ellipse(0,0,310,310);
fill(125,125,0);
ellipse(0,0,270,270);
fill(255,255,255);
ellipse(0,0,230,230);
fill(255,0,0);
rotate(rrr);rrr+=0.02;
for(int i=0;i<20;i++){
rotate( PI/10);
ellipse(100,0,150,30);
}
if (mousePressed) {
stroke(255);
} else {
stroke(0);
}
}
3.期中想做的
酒瓶要會移動~
且要增加計分&時間倒數的功能!!
88
回覆刪除