Squares and Triangles
Maksim Hapeyenka · 2021 · Factory
A symphony of nothing but squares and triangles to create something beautiful. This is a project I made when I was just getting started with generative art. I decided to revive it despite all its flaws to preserve this piece of my humble history.
How it works
The core is geometric tiling. It stacks only squares and triangles as concentric, centre-sharing nests, one after another, building up layers while rotating little by little. From the repetition of just two simple shapes, it produces a complex chain of geometry on the screen. Each layer is overlaid with additive blending and coloured with hash-derived RGB, so colour accumulates like piling light the more the shapes overlap. The hash decides the rotation step, the shapes' sizes and the rarity (whether filled or rotated), generating a symphony of only squares and triangles in a different composition at every point.
Palette
#0d150d#444a29#3f454f#7f5c89#b6a1d7#6b4d64#686dcb#a781a1 Algorithms
- Geometric / Hexagonal Tiling primary · classification: LLM
Details
View generator ↗ · Art Blocks ↗
Sources
- On-chain artblocks.io ↗
Related works (by shared algorithms)
Last updated 2026-07-16