所以我正在使用处理,我希望程序绘制一个椭圆,然后等待2秒,然后绘制另一个不同的椭圆。我该怎么做呢?这些是我想要绘制的椭圆:
ellipse(350, 250, 160, 120); // big horizontal ellipse
strokeWeight(8); // stroke thickness
stroke(100); // stroke color
noFill(); // ellipse is transparent inside
ellipse(350, 250, 50, 120); // vertical ellipse
strokeWeight(8);
stroke(100);
noFill();
ellipse(350, 220, 130, 50); // small horizontal ellipse
strokeWeight(8);
stroke(100);
noFill();
您可以使用frameCount
变量或milis()
函数来根据时间进行操作。
更多信息:
另请参阅:处理参考