should use reversed frames, not the original frames

This commit is contained in:
Jidong Xiao
2025-02-11 23:25:29 -05:00
committed by JamesFlare
parent 916740069a
commit c0bf9b0d2e
4 changed files with 5 additions and 1 deletions

View File

@@ -42,6 +42,10 @@ Example 5:
This is the [original GIF](seat_real.gif). And this is the [reversed GIF](seat_fake.gif).
Example 6:
This is the [original GIF](pool_real.gif). And this is the [reversed GIF](pool_fake.gif).
## Starter Code
The starter code [main.cpp](main.cpp) defines a class named GifFrame to represents GIF frames. Each object of this class represents one frame.

View File

@@ -290,7 +290,7 @@ int main() {
std::vector<GifFrame> reversedFrames = reverseFrames(frames);
// write out the new GIF with the complete header
writeGif("reversed.gif", completeHeader, frames, loopExtension);
writeGif("reversed.gif", completeHeader, reversedFrames, loopExtension);
return 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB