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

saveFrame()

   
Examples  
int x = 0; 
void loop() 
{ 
  background(204); 
  if(x < 100) { 
    line(x, 0, x, 100); 
    // それぞれのフレームを screen-0000.tif, screen-0001,etc という名前で保存  
    saveFrame(); 
    x = x + 1; 
  } 
} 


int x = 0; 
void loop() 
{ 
  background(204); 
  if(x < 100) { 
    line(x, 0, x, 100); 
    // それぞれのフレームを line-0000.tif, line-0001, etcという名前で保存  
    saveFrame("line-####.tif"); 
    x = x + 1; 
  } 
} 

Description  

イメージの多くのシーケンスを保存する。もしもパラメータなしでsaveFrame()がよばれると、screen-0000.tif, screen-0001.tifのようにファイルができる。filenameパラメータでシーケンスの名前を決定することができる。そして、 ext パラメータでTIFFかTARGAファイルで保存するか選択できる。これらのイメージシーケンスはAppleのQuicktimeのようなプログラムにロードでき、ムービーが作れる。

 

   
Syntax  
saveFrame()
saveFrame("filename-####.ext")
   
Parameters  
filename   文字列: 文字や数字のシーケンス

ext   "tif"か"tga"のどちらか

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