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

03A Manhattan Distance Heat Map for Each Tile

For each tile the Manhattan distance, the columns plus the rows between its current cell and its home cell, sets the depth of its colour. The sum H over the whole board is shown as a number too, and you can see H rise or fall by only 1 with each move. When the sum reaches 0 the board is done.

Best forA display that shows at a glance which tile is farthest from home

manhattanheatsumH
A Manhattan Distance Heat Map for Each Tile
Open in a new tab

03 A Manhattan Distance Heat Map for Each Tile — Measured area 18.897% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Sliding Puzzle: 9 Canvas Scenes, Parity to Search

The post this demo lives in

Sliding Puzzle: 9 Canvas Scenes, Parity to Search - preview of all 9 demosSliding Puzzle: 9 Canvas Scenes, Parity to SearchWhy are some sliding puzzle boards unsolvable? 02 counts flipped pairs to sort them, 05 raises a Manhattan distance boun See all demos in this post

If you like this effect - similar demos