censor is a standalone palette analyser inspired by DawnBringer's Palette Analyser for GrafX2 and having a compatible layout.
It helps creating and evaluating restricted palettes by providing visualisations and highlighting certain properties.

Install the rust toolchain using rustup or the repository. Then run:
$ cargo install censor-analyser
censor analyseThe default output is written into plot.png
in the working directory even if the file exists.
Specify another output file with -o another.png argument.
Analyse a palette from an image input.png:
$ censor analyse -i input.png
Analyse a palette from a text file input.hex:
$ censor analyse -f input.hex
Analyse a palette from manually specified hexcodes 2e3037,ebe5ce:
$ censor analyse -c 2e3037,ebe5ce
Analyse a palette from lospec.com aurora:
$ censor analyse -l aurora
censor daemonStart daemon mode on port 8008:
$ censor daemon -p 8008
Once the daemon is running, send commands
after connecting to the port (one command per connection).
The syntax of the only currently supported command:
analyse <hex|img|file>://DATA OUTPUT
hex://: DATA is a comma-separated list of colour hexcodes.
img://: DATA is the input image path.
file://: DATA is the input newline-separated hexcode list path.
OUTPUT is the output image path.
On success, OK is returned. On error, ERR is returned and
more info is printed into daemon's stderr.
y parametrising a parabola going through pure black, the spectral colour and pure white)(mean_d/min_d)/n^(2/3))-log(CCT), might be changed later)