Warning: Undefined array key 1 in /home/r-dimension/r-dimension.xsrv.jp/public_html/classes_j/wp-content/plugins/aph-prism-highlighter/includes/aphph-front.php on line 165
Warning: Undefined array key 1 in /home/r-dimension/r-dimension.xsrv.jp/public_html/classes_j/wp-content/plugins/aph-prism-highlighter/includes/aphph-front.php on line 165
例えば、Processingのスケッチを起動して3秒してから、プログラムを開始したい場合は、delay()を使うと簡単に実現できます。
15秒の場合は、delay(15000)になります。
void setup() {
size(400, 400);
//単位はミリセカンド。1000ms = 1秒
delay(3000); //プログラムを3秒停止
}
void draw() {
background(255);
ellipse(width / 2, height / 2, 100, 100);
}
