1.1.0 • Published 5 years ago

pxlsrt-cli v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

pxlsrt-cli

Command line interface for pxlsrt.js. Pixel sort your images from the command line!

Usage

pxlsrt command <image path> [options]

Shared command options

See pxlsrt.js for more in-depth information.

OptionDefaultChoices/TypeDescription
--helpDisplays help for command.
--version, -vDisplays version.
--output, -ostdoutstringOutput to file.
--method, -msumRGBASee pxlsrt.jsSort method.
--direction, -dhorizontal[horizontal, vertical, tlbr, trbl]Sort direction.
--smooth, -sfalsebooleanGroup same pixels together to keep them uninterrupted.
--reverse, -rfalse[true, false, either]Reverse bands or not. Use either to randomly reverse.
--middlate, -M0integerMiddlation rearranges a band so the first pixel is in the middle, and continues to wind outwards. Use positive values to loop that many times. Use negative values to apply the process in reverse that many times.

Commands

brute

See pxlsrt.js for more in-depth information.

OptionDefaultChoices/TypeDescription
--minmaxintegerThe minimum length of the band. By default, equals the maximum length.
--maxline lengthintegerThe maximum length of the band. By default, equals the line length.

smart

See pxlsrt.js for more in-depth information.

OptionDefaultChoices/TypeDescription
--threshold, -t20integerThreshold for edge detection. The larger the number, the larger the region.