Skip to content

Visualize random trees recursively bisecting a 2D plane

License

Notifications You must be signed in to change notification settings

tambeta/xmascard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xmascard

A Python script for procedurally generating abstract "christmas cards" by randomly partitioning a 2D plane and filling the resulting rectangles using a preset palette.

Since it's intended as a one-off script, there is no command-line interface and control of the script is via hardcoded constants. Feel free to fork and improve the interface, though.

The sole external dependency is PIL / Pillow.

Simply execute the script and out.png is output into the working directory.

Example output:

Example

About

Visualize random trees recursively bisecting a 2D plane

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages