A Minimalist wallpaper generator
Project description
ColorWallpaper
A Minimalist wallpaper generator
Get the latest release
Generates wallpapers such as:
Generated with:
python -m color_wallpaper --color black --output https://raw.githubusercontent.com/BranislavBajuzik/ColorWallpaper/master/example.png --formats empty HEX rgb --resolution 960x540 --scale 2
Requirements
Usage
Direct generation: python ColorWallpaper.py --option[s]
Options:
-h
/--help
- Display help and exit
File options
-o
/--output
PATH
- Used to specify image output path.
- Default:
out.png
-y
/--yes
- Forces overwrite of
--output
- Forces overwrite of
Color options
-c
/--color
COLOR
- Used to specify Background color. Also accepts
random
which picks random named color. - Default:
random
- Used to specify Background color. Also accepts
-c2
/--color2
COLOR
- Used to specify text color. Also accepts
inverted
which is the inverse of--color
. - Default:
inverted
- Used to specify text color. Also accepts
-d
/--display
NAME
- Overrides the display name of the
--color
. Empty string disables the name row.
- Overrides the display name of the
--min-contrast
CONTRAST
- Min contrast of
--color
and--color2
, if--color2
isinverted
. Will raise if this can not be satisfied. - Default:
1
- Min contrast of
--overlay-color
COLOR
- Used to specify color of potential overlay, like icons or text.
--overlay-contrast
CONTRAST
- Min contrast of --color and --overlay-color. Will raise if this can not be satisfied.
- Default:
1
Display options
-r
/--resolution
RESOLUTION
- Used to specify image resolution.
- Default:
1920x1080
.
-s
/--scale
SCALE
- The size of the highlight (128px) will be multiplied by this.
- Default:
3
-f
/--formats
[FORMAT
...]- Declares the order and formats to display
- Default:
empty HEX rgb
Argument formats
COLOR
#Hex
: Three or six hexadecimal digits optionally starting with#
.R,G,B
: Three comma separated numbers in range 0-255.- Valid name of a color.
CONTRAST
- A float in range 1-21.
RESOLUTION
- Two positive integers greater or equal to 150, separated by
x
or:
.
- Two positive integers greater or equal to 150, separated by
FORMAT
- Self explanatory:
hex
,rgb
,hsv
,hsl
,cmyk
empty
: Empty row.#hex
:hex
, but starting with#
#HEX
,HEX
: Likehex
, but uppercase
- Self explanatory:
Contribute
Setup environment
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
pre-commit install
Run tests
python -m unittest discover
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
color-wallpaper-1.1.7.tar.gz
(27.3 kB
view details)
Built Distribution
File details
Details for the file color-wallpaper-1.1.7.tar.gz
.
File metadata
- Download URL: color-wallpaper-1.1.7.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3078b817ae46c4e64ce07cf8b413d6072876e6936b29647feee9e7f26c124d76 |
|
MD5 | f13c4e655b65c053255c204aa0355092 |
|
BLAKE2b-256 | caf9f94f53b7f8af2da28104996014c6869578d09973c62546f110df1d24f5c3 |
File details
Details for the file color_wallpaper-1.1.7-py3-none-any.whl
.
File metadata
- Download URL: color_wallpaper-1.1.7-py3-none-any.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 303c08fd4974cae37de0f7984d80ac35897d9e87e90714a6679d5425e2c1811a |
|
MD5 | bb6047e03f77a522d0e77f9520a06091 |
|
BLAKE2b-256 | 3ef56bcc756ee5306eb300c3b1eefe15634ffffce593b9f3befca49ae45574d7 |