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

videoEvent()

   
Examples  
int pos = 0; 
 
void setup() {	 
  size(320, 240); 
  noBackground(); 
  beginVideo(2, 240, 24);  
} 
 
// 新しいビデオフレームがあるといつもよばれる 
public void videoEvent() {  
  pos = pos + 2; 
  if(pos >= width) { 
    pos = 0; 
  } 
} 
 
void loop() { 
  // [0, 0] の位置にキャプチャーしたフレームを表示する
  image(video, pos, 0);   	 
} 

Description  

新しいビデオフレームがあるといつもよばれ、ビデオの1フレームだけが一度に読み込まれる。ビデオ変数はいつも最も新しくキャプチャーしたビデオのフレームを保持している。

 

   
Syntax  
videoEvent() {
  statements
}
   
Parameters  
statements   どんな有効な式でもよい

   
Returns  
   
Usage   Application
   
Related   beginVideo()
endVideo()
video
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas