项目作者: FlorianCassayre

项目描述 :
Pixel art generator for pixel space.
高级语言: Java
项目地址: git://github.com/FlorianCassayre/PxlArtGenerator.git
创建时间: 2017-04-13T11:13:53Z
项目社区:https://github.com/FlorianCassayre/PxlArtGenerator

开源协议:

下载


PxlArtGenerator

A light tool to convert images to pixel arts using the 16-colors palette available on pxls.space.

Mona Lisa

Requirements

Java 1.7+ is required to run the program.

Download

A compiled version can be downloaded in the releases section.

Usage

  1. Usage: java -jar PxlArtGenerator.jar <source image> <output image> [options]
  2. Options:
  3. --help
  4. Displays this menu
  5. -height, -h
  6. The output image height
  7. -output-size
  8. The size of the pixels on the output image
  9. Default: 1
  10. -palette, -p
  11. The palette to be used to draw the output image; it must be in
  12. hexadecimal
  13. Default: 0123456789abcdef
  14. -width, -w
  15. The output image width

Examples

Default options; the output size will be the same as the input, using all the available colors:

java -jar PxlArtGenerator.jar source.png output.png

The output pixels will be 10 times larger (useful to avoid anti-aliasing when sharing the image):

java -jar PxlArtGenerator.jar source.png output.png -output-size 10

The palette will only use white, light gray, gray and black:

java -jar PxlArtGenerator.jar source.png output.png -palette 0123

The output image will be 20 pixels long (horizontally), and the height will be calculated according to the original aspect ratio:

java -jar PxlArtGenerator.jar source.png output.png -width 20

The output image will be 50 x 50 pixels (warning, the aspect ratio can change!):

java -jar PxlArtGenerator.jar source.png output.png -width 50 -height 50