Click the button to generate a unique building facade based on a procedural shape grammar.
Hillbrow Facade Generator Rules
This is a visual summary of the rules that procedurally generate the building facade.
Facade Structure
Overall Dimensions: The building is always 15 units wide.
Ground Floor: Always 4 units high.
Upper Floors: Always 3 units high.
Number of Floors: Adjustable from 4 to 8 via a slider.
Ground Floor Logic
Wall Material: A single color is chosen from a palette of white, grey, or light brown.
Separation: A solid slab separates it from the floors above.
Front Door: Positioned randomly on the left, right, or center. The frame provides a strong contrast to the wall.
Windows: The presence of windows is random. If present, they are placed only on panels without the door.
Upper Floors Logic
A single floor pattern is generated and repeated on all floors above the ground floor.
Module Types: Each 3-unit-wide panel is a blank wall, a balcony, or a window panel.
Adjacent Panels:
Blank walls cannot be next to each other.
Balconies cannot be next to each other.
The left and right edge panels cannot both be blank walls.
Special Rules:
The panel above the door has a 30% chance of being a window, a 30% chance of being a concrete panel, a 30% chance of being a balcony, and a 10% chance of being a plain wall.
At least one balcony is guaranteed in the pattern.
If the door is centered, the pattern is guaranteed to be asymmetrical.
Roof Logic
The roof is a distinct, single-story element at the top.
Balustrade: A 1-unit-high balustrade is always present. It can be brick, concrete, or a white material with lines.
Penthouse Block: There is a 50% chance a 1, 2, or 3-module-wide penthouse block will be placed on the roof. It matches the building's materials and has small windows.
Handrail: A 0.1-unit white line is always drawn on top of the balustrade to act as a handrail.