https://github.com/iaseth/pixelpython
https://github.com/iaseth/pixelpython
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iaseth/pixelpython
- Owner: iaseth
- License: mit
- Created: 2025-01-31T12:02:31.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-02-03T13:56:14.000Z (8 months ago)
- Last Synced: 2025-06-12T14:06:23.056Z (4 months ago)
- Language: Python
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PixelPython
This Python script generates a wallpaper with evenly sized rectangular patterns. The rectangles are all shades of a specified base color and are arranged to cover the entire image with optional padding and gaps.
| Blue Triangles | Red | Green | Blue |
| ---- | ---- | ---- | ---- |
||
|
|
|
## Requirements
- Python 3.x
- Pillow (PIL)To install dependencies, run:
```sh
pip install pillow
```## Usage
Run the script with a specified hex color and rectangle size:
```sh
python pixelpython.py
```The script accepts the following arguments:
- `color`: Base color in hex/name format (e.g., `"#6496C8"` or `"red"`)
- `background`: Background color in hex/name format
- `size`: Size of each rectangle (default: 110)
- `width`: Width of the wallpaper (default: 1920)
- `height`: Height of the wallpaper (default: 1080)
- `padding`: Padding around the edges (default: 0)
- `gap`: Gap between rectangles (default: 10)## Output
The generated wallpaper is saved as `wallpaper.png` in the same directory.## License
This project is open-source and available under the MIT License.