Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tambeta/xmascard
Visualize random trees recursively bisecting a 2D plane
https://github.com/tambeta/xmascard
Last synced: about 14 hours ago
JSON representation
Visualize random trees recursively bisecting a 2D plane
- Host: GitHub
- URL: https://github.com/tambeta/xmascard
- Owner: tambeta
- License: mit
- Created: 2019-12-03T16:04:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T16:08:24.000Z (almost 5 years ago)
- Last Synced: 2023-07-21T18:15:17.558Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://pillow.readthedocs.io/en/stable/).Simply execute the script and `out.png` is output into the working directory.
Example output:
![Example](https://i.imgur.com/ey5e1Ky.png)