Skip to content

CLI to reverse frames in a texture for a MoreMcmeta animation.

License

Notifications You must be signed in to change notification settings

MoreMcmeta/frame-reverse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frame-reverse

frame-reverse is a simple command line tool written in Rust. It converts MoreMcmeta animation strips from this format:

0 4
1 5
2 6
3 7

to this format:

0 1
2 3
4 5
6 7

Options

Run the tool with the --help flag to view a list of the tool's options.

  • i - path to image to use as input
  • o - path where new file will be written. Any existing file at this location will be overwritten.
  • w - width of a frame in the image. This is not the width of the entire image.
  • h - height of a frame in the image. This is not the height of the entire image.
  • r - number of frames per row in the output image. Optional. If not provided, the output image will have the same number of frames per row as the input image.

For example,

$ ./frame-reverse -i myimage.png -o output.png -w 10 -h 10 -r 2

will reverse the ordering of the frames of the image myimage.png, where each frame is 10x10, to create output.png with two 10x10 frames per row.

Building the Tool

Install Rust. Then run cargo build or cargo build --release (for an optimized build) from the command line.

About

CLI to reverse frames in a texture for a MoreMcmeta animation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages