|
|
|
|
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() |
|