mirror of
https://github.com/Skyfire2008/lineSorter.git
synced 2026-08-20 20:35:16 +00:00
A command line pixel sorting utility
- Haxe 100%
| src | ||
| .gitignore | ||
| lineSorter.hxml | ||
| README.md | ||
lineSorter
Building
To build run "haxe lineSorter.hxml". You'll need the format library, which can be installed by using "haxelib install format".
Running
Run by executing "neko bin/lineSorter.n -i filename" from the command line. Only PNG is supported right now. The resulting file will be located at filename-output.png.
Options:
The following arguments can be used to change the behaviour of the utility:
- -i filename - to specify the input file (required).
- -m (h|s|l|r|g|b) - to specify the criterium used to sort the values. H, S, L, R, G, B stand for hue, saturation, lightness(default), red, green and blue respectively.
- -l - to use the line-wise mode, sorts single pixel values within every vertical line of the image.