should use reversed frames, not the original frames
This commit is contained in:
@@ -42,6 +42,10 @@ Example 5:
|
|||||||
|
|
||||||
This is the [original GIF](seat_real.gif). And this is the [reversed GIF](seat_fake.gif).
|
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
|
## 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.
|
The starter code [main.cpp](main.cpp) defines a class named GifFrame to represents GIF frames. Each object of this class represents one frame.
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ int main() {
|
|||||||
std::vector<GifFrame> reversedFrames = reverseFrames(frames);
|
std::vector<GifFrame> reversedFrames = reverseFrames(frames);
|
||||||
|
|
||||||
// write out the new GIF with the complete header
|
// write out the new GIF with the complete header
|
||||||
writeGif("reversed.gif", completeHeader, frames, loopExtension);
|
writeGif("reversed.gif", completeHeader, reversedFrames, loopExtension);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
labs/list_iterators_new/pool_fake.gif
Normal file
BIN
labs/list_iterators_new/pool_fake.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
BIN
labs/list_iterators_new/pool_real.gif
Normal file
BIN
labs/list_iterators_new/pool_real.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
Reference in New Issue
Block a user