インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

delay()

   
Examples  
int pos = 0; 
void loop() { 
  pos++; 
  line(pos, 20, pos, 80); 
  if(pos > width) { 
    pos = 0; 
  } 
  delay(250);  // Stops the program for 250 milliseconds 
} 
Description  

プログラムにある特定の時間に走るのを止めることを強制する。ディレイ時間は1/1000秒で決定される。delay(3000)としてよんだ機能はプログラムを3秒止める。

 

   
Syntax  
delay(ミリ秒)
   
Parameters  
milliseconds   整数: ミリ秒として決定する (1秒に1000ミリ秒)

   
Returns   なし
   
Usage   Web & Application
   
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas