D bindings to the GraphicsMagick library.
修訂 | f5f1ebd66977dbd6f5674a585a815a389f026ec8 (tree) |
---|---|
時間 | 2023-07-22 15:03:24 |
作者 | Mio <stigma@disr...> |
Commiter | Mio |
[examples] Update make_gif to produce example GIF
@@ -39,10 +39,14 @@ int main(string[] args) | ||
39 | 39 | |
40 | 40 | foreach(arg; args[1..$-1]) { |
41 | 41 | 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; | |
45 | 48 | wand.imageIterations = 0; |
49 | + | |
46 | 50 | writefln("Read %s...", wand.currentFilename); |
47 | 51 | } |
48 | 52 |
@@ -51,10 +55,10 @@ int main(string[] args) | ||
51 | 55 | wand.writeImages(wand.filename, true); |
52 | 56 | |
53 | 57 | writeln("Equivalent to:"); |
54 | - write(" gm convert -loop 0 -delay 10 -dispose Previous "); | |
58 | + write(" gm convert -loop 0 -delay 12 -dispose Background \\\n"); | |
55 | 59 | foreach(arg; args[1..$-1]) { |
56 | - writef("%s ", arg); | |
60 | + writef(" %s \\\n", arg); | |
57 | 61 | } |
58 | - writef("%s\n", args[$-1]); | |
62 | + writef(" %s\n", args[$-1]); | |
59 | 63 | return 0; |
60 | 64 | } |