Recursion
Hevey · 2021 · Factory
Recursion is a generative art project whose concept is recursion. Each variation starts with a block which is irregularly divided into smaller blocks, which are then divided into smaller blocks, which are then divided into smaller blocks, etc, based on a defined depth (to better visualize this concept, take a look at https://hevey.art/blog/recursion-concept). In this project, even the script is recursive! The script is able to generate a large number of variations and each of these variations is then able to generate its own variations (keeping the same properties) with a single click on the image.
How it works
The core is recursive region division. It divides one block into uneven smaller blocks, divides each of those into smaller blocks, and so on, recursively subdividing to a fixed depth. Each rectangle makes a nested filling pattern by dividing its extent into a pair of divisors (rows × columns) and packing them in a grid (class K). The depth and density of division and the palette are decided by hash-derived parameters, and the composition's format (centred, quartered, etc.) also switches according to the hash. With recursion itself as the theme, it generates at every point from combinations of rectangle groups that change with each subdivision.
Palette
#000000#b4b4b4#c8c8c8#e1e1e1#d2d2d2#aaaaaa#646464#3d2d01#5bd1d7#348498#004d61#dd0a35#e4d1d3#1687a7#014955#2c323b#494e56#fd7013#eeeeee#525252#ca3e47#414141#313131#de4307#f29c2b#f6d04d#8bc24c#001871#41b6e6#ebdcbb#be9b37#807859 +69 more #6c332c#0a0909#23434d#558079#b96e2d#0390da#c5ffee#db147f Algorithms
- Marching Squares / Contours primary · classification: rule-based
Details
View generator ↗ · Art Blocks ↗
Sources
- On-chain artblocks.io ↗
Related works (by shared algorithms)
Last updated 2026-07-16