Add comment to script

This commit is contained in:
Miloslav Číž 2018-10-01 17:04:57 +02:00
parent 14edbb14db
commit 3bfcef2ce7

View file

@ -1,4 +1,15 @@
# Convert png image to 256 palette image for Pokitto. # Convert png image to 256 palette image for Pokitto. Usage:
#
# python convert_png.py input_image.png palette_16x16_image.png
#
# The script will read the input PNG image (must be in RGB format, NOT
# indexed), match each pixel to the closest color in the palette and output
# the image to stdout as an array of bytes, by columns. It's best if the image
# is made only of color of the palette as the closest match can sometimes look
# different from what you imagined.
#
# The script will also create an image (out.png) of the converted image, so
# that you can check how it looks.
# #
# author: Miloslav Ciz # author: Miloslav Ciz
# license: CC0 # license: CC0