RaubCamaioni / Beautiful_Boxes

Python Script Generates Boxs Recursively

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Beautiful_Boxes

Python Script Generates Boxs Recursively

Pulled from a seperate project and turned to "art" efforts. Splits boxes recursively with some added randomness, colors, and different constrainst on the number of splits.

Also returns a node list of the splits. My other project uses these nodes as a building block for synthetic circuit diagram images.

Below are a few example outputs. Vary a couple different parameters for different outputs.

split by the aspect ratio (always split along the long side) random colors :) the pattern is interesting and unintended. probably caused by some rounding error and recursion depth alt text

split aspect with added noise to split location, random colors alt text

split randomly with added noise to split location, random colors alt text

split randomly with added noise to split location, random colors (removed lines) alt text

messing with the code (shrink boxes leave lines) alt text

removing even split constraint (had some naive code that needed to be changed) alt text

About

Python Script Generates Boxs Recursively


Languages

Language:Python 100.0%