level 1
float d = 1;
float z = 0.0;
void setup(){
size(1000,800);
smooth();
noStroke();
rectMode(CENTER);
}
void draw(){
fill(0.5);
rect(width/2,height/2,width,height);
translate(mouseX,mouseY);
rotate(z);
z +=0.1;
d +=1.5;
scale(d);
if(d>200){
d = 1;
}
fill(255);
rect(0,0,1,1);
}
运行就不行我也不知道哪里出了问题
2018年04月27日 14点04分
1
level 2
float d = 1.00;
float z = 0.0;
void setup(){
size(1000,800);
smooth();
noStroke();
rectMode(CENTER);
}
void draw(){
fill(0.5);
rect(width/2,height/2,width,height);
translate(mouseX,mouseY);
rotate(z);
z +=0.1;
d +=1.5;
scale(d);
if(d>200){
d = 1;
}
fill(255);
rect(0,0,1,1);
}
2018年04月30日 09点04分
6
回去试下大佬
2018年05月01日 16点05分