Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/surrsurus/pixel-rorschach
Generate a variety of 8-bit style rorschach-esque images
https://github.com/surrsurus/pixel-rorschach
generator icon image pixel-art python
Last synced: about 6 hours ago
JSON representation
Generate a variety of 8-bit style rorschach-esque images
- Host: GitHub
- URL: https://github.com/surrsurus/pixel-rorschach
- Owner: surrsurus
- License: gpl-3.0
- Created: 2016-10-12T15:08:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-18T07:22:10.000Z (6 months ago)
- Last Synced: 2024-05-18T08:25:37.711Z (6 months ago)
- Topics: generator, icon, image, pixel-art, python
- Language: Python
- Size: 155 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pixel-rorschach
![Rorschach GIF](https://github.com/surrsurus/pixel-rorschach/blob/master/examples/rorschach.gif)
Generate a variety of 8-bit style rorschach-esque images.
# Output
Images are generated as `.ppm` files, but they can be converted to jpgs:
```sh
brew install netpbm
pnmtojpeg rorschach.ppm > img.jpg
```# Usage
`python3 rorschach.py -h` will let you see all of the options:
```sh
usage: rorshach [-h] [-s SIZE] [-x SCALE] [-m MODE] [-o OUT] [-u MAX_COLOR] [-l MIN_COLOR] [--rainbow] [--colorbgs] [--github]optional arguments:
-h, --help show this help message and exit
-s SIZE, --size SIZE set the length and width of the image in pixels (default: 16)
-x SCALE, --scale SCALE
set the scale factor of the image. For each pixel of the image, it will make them that many times larger (default: 20)
-m MODE, --mode MODE set color mode (bw or 256) (default: bw)
-o OUT, --out OUT set the name of the output file (default: rorschach.ppm)
-u MAX_COLOR, --max-color MAX_COLOR
set the upper color boundary (cannot be higher than 255) (default: 255)
-l MIN_COLOR, --min-color MIN_COLOR
set the lower color boundary (default: 0)
--rainbow enable rainbow mode (color only) (default: False)
--colorbgs enable greater color variety in bg colors (color only) (default: False)
--github make a github-esque icon (ignores size and color settings) (default: False)
```