添加一个小的
delay(10)
在里面
draw()
格拉菲科环
PApplet
成功了!
public class Grafico extends PApplet {
private final int w, h;
public Grafico(int w, int h) {
this.w = w;
this.h = h;
}
void settings () {
size(w, h);
}
void setup() {
ini();
}
void ini() {
background(0);
text("Second", 10, 20);
}
void disegna() {
text("Hello!", 10, 50);
println("Hello!");
}
void draw() {
delay(10);
}
}