• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

D bindings to the GraphicsMagick library.


Commit MetaInfo

修訂f5f1ebd66977dbd6f5674a585a815a389f026ec8 (tree)
時間2023-07-22 15:03:24
作者Mio <stigma@disr...>
CommiterMio

Log Message

[examples] Update make_gif to produce example GIF

Change Summary

差異

--- a/examples/make_gif.d
+++ b/examples/make_gif.d
@@ -39,10 +39,14 @@ int main(string[] args)
3939
4040 foreach(arg; args[1..$-1]) {
4141 wand.readImage(arg);
42- // NOTE: Measured in hundredths of a second (centisecond).
43- wand.delay = 10;
44- wand.imageDispose = DisposeType.previous;
42+
43+ // EDIT:
44+ // This is the section that controls each frame of the animation.
45+ // Make any necessary changes here.
46+ wand.delay = 12; // hundredths of a second (centisecond)
47+ wand.imageDispose = DisposeType.background;
4548 wand.imageIterations = 0;
49+
4650 writefln("Read %s...", wand.currentFilename);
4751 }
4852
@@ -51,10 +55,10 @@ int main(string[] args)
5155 wand.writeImages(wand.filename, true);
5256
5357 writeln("Equivalent to:");
54- write(" gm convert -loop 0 -delay 10 -dispose Previous ");
58+ write(" gm convert -loop 0 -delay 12 -dispose Background \\\n");
5559 foreach(arg; args[1..$-1]) {
56- writef("%s ", arg);
60+ writef(" %s \\\n", arg);
5761 }
58- writef("%s\n", args[$-1]);
62+ writef(" %s\n", args[$-1]);
5963 return 0;
6064 }