GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

06Tiles That Fill In by Keeping Only Pieces That Match Their Neighbors

Every cell keeps a list of TILE_EDGES tiles it could hold; the cell with the fewest left picks one by TILE_WEIGHTS weighted chance (COLLAPSE_PER_FRAME cells per tick), candidates whose touching edges no longer match are removed from neighbors through a queue, and if any cell runs out of candidates the whole board starts over and the restart is counted.

Best forMap backdrop for a game intro page

TILE_EDGESTILE_WEIGHTSCOLLAPSE_PER_FRAME
Tiles That Fill In by Keeping Only Pieces That Match Their Neighbors
Open in a new tab

06 Tiles That Fill In by Keeping Only Pieces That Match Their Neighbors — Measured area 50.553% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Generative Art JavaScript: 9 Patterns That Grow

The post this demo lives in

Generative Art JavaScript: 9 Patterns That Grow - preview of all 9 demosGenerative Art JavaScript: 9 Patterns That GrowWith generative art JavaScript, one seed gives the same picture on every redraw. 02 reaches veins toward scattered attra See all demos in this post

If you like this effect - similar demos