Add comment to script
This commit is contained in:
parent
14edbb14db
commit
3bfcef2ce7
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
# license: CC0
|
||||
|
|
Loading…
Reference in a new issue