Usage: maze image-to-grid [options] <input-image> [output-path]
Example: maze image-to-grid ./examples/image/small.png ./output.txt -r
Takes an existing image file, parses it into a grid, and outputs it as a definition text file.
Options:
Argument | Description | Default |
---|---|---|
-r --replace | Specifies whether existing files will be replaced. | False |
-i --ignore-parse-errors | Ignores or corrects non-fatal errors when parsing input image files. | False |
--load | Specifies the file path of an existing image configuration file. If this is blank, no file will be loaded. | |
--save | Specifies the name of a saved image configuration file. If this is blank, no file will be saved. | |
--wall | The hex colour of wall pixels in the input image. | #000000 |
--floor | The hex colour of floor pixels in the input image. | #FFFFFF |
--tolerance | The percentage difference allowed when checking image pixel colours. | 0 |
--size | The size of a maze tile in pixels. | 10 |
-x --start-x | The X location of the first tile. | 0 |
-y --start-y | The Y location of the first tile. | 0 |
Note: If no output path is specified, the output file will be created in the program folder named grid.txt