void setup(){
size(480, 480);
background(255, 255,255);
}
void draw(){
if(mousePressed){
fill(0,0,0);
}else {
fill(255,0,0);
}
ellipse(mouseX, mouseY, 80, 80);
}
void setup(){
size(480, 480);
background(255, 255,255);
}
void draw(){
if(mousePressed){
fill(0,0,0);
}else {
fill(255,0,0);
}
ellipse(mouseX, mouseY, 80, 80);
}
本文标题:第一个processing生成的图
本文链接:https://www.haomeiwen.com/subject/pycwdqtx.html
网友评论