Skip to content

iaseth/pixelpython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

pip install pillow

Usage

Run the script with a specified hex color and rectangle size:

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages