https://github.com/abcaeffchen/pictor
Generate pixel art as vector image.
https://github.com/abcaeffchen/pictor
pixel-art python3 random-generation svg vector-graphics
Last synced: 17 days ago
JSON representation
Generate pixel art as vector image.
- Host: GitHub
- URL: https://github.com/abcaeffchen/pictor
- Owner: AbcAeffchen
- License: gpl-3.0
- Created: 2018-01-09T21:49:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-19T19:45:16.000Z (over 6 years ago)
- Last Synced: 2025-03-23T23:23:09.272Z (about 1 month ago)
- Topics: pixel-art, python3, random-generation, svg, vector-graphics
- Language: Python
- Size: 42 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pictor
Generate pixel art as vector image.

## Usage
```
usage: core.py [-h] [-c #RRGGBB] [--contrast min max] [-bg #RRGGBB]
[-b width #RRGGBB] [-d width height] [-n num] [-s int]
[-sp int] [-spp float] [-r int] [-rb] [-o path] [-v]
[--version]Generate pixel art as vector image.
optional arguments:
-h, --help show this help message and exit
-c #RRGGBB, --color #RRGGBB
The color value as #rrggbb.
--contrast min max The contrast range of the pixels.
-bg #RRGGBB, --background #RRGGBB
The background color value as #rgb.
-b width #RRGGBB, --border width #RRGGBB
Width and color of the border between pixels.
-d width height, --dim width height
dimension in pixels as width and height.
-n num, --num_shadings num
The number of shades used in the image.
-s int, --scale int The size of a pixel.
-sp int, --sub-pixels int
The number of times a pixel can be split into 4 sub
pixels
-spp float, --sub-pixels-probability float
The probability a pixel or sub pixel is split into sub
pixels.
-r int, --radius int Pixel corner radius.
-rb, --rainbow Use rainbow colors instead of a fixed color.
-o path, --out path The path to the output file.
-v, --verbose Print additional outputs
--version show program's version number and exit
```## Features
- Random pixels of different shades of a single fixed color.
- Random pixels of different shades of the full spectrum.
- (planned) Colormap: Use a Bitmap image to get the color from.
- (planned) Adjustable shade intensity.
- (planned) Adjustable randomness.
- (planned) light to dark and other way around.
- (planned) light to dark to light and other way around.
- Adjustable image size in terms of numbers of pixels per row and column.
- Dynamic resolution: split some pixels into subpixels.
- Adjustable randomess for subpixels.
- (planned) Adjustable places (top, bottom, one or more coordinates in the image).
- (planned) Subpixels that leave the grid.
- (planned) Pixels/Subpixels that leave the grid (random, adjustable)
- Adjustable pixel boarders (color, thickness)
- Adjustable image background color
- Round Pixel corners
- (planned) Small svg files without compression.
- (planned) support gzipped output. (can directly displayed by chrome)