Re:Show HN: Interactive Penrose tiles
by stared on Friday September 25, 2015 @07:16AM
(#10277463)
Could anyone explain what's going on? (I.e. how my mouse position influences the shape?)
[ Parent
| on HN ]
It's using Y position of the mouse to determine the size of the tiles.
http://etisab.github.io/penrose.js - see the processing.draw call.
This tiler uses an algorithm that recursively subdivides triangles according to certain rules. Moving the mouse lets you easily see each transformation from the previous. Try clicking anywhere on the page too.