4 ms·
> and add visualisations to it Might I suggest a different animation. The current one swaps two elements (bars) by vertically shrinking the taller bar and grow
by adrianmonk 3y ago
> and add visualisations to it
Might I suggest a different animation. The current one swaps two elements (bars) by vertically shrinking the taller bar and growing the shorter one. Instead, the bars should stay the same height but move horizontally. I would rather see values move than slots in the array morph to the new value they should hold. The current animation feels like you are pumping water from one tank to another.
- SonOfLilit 3y agoThe visualization you're suggesting would be orders of magnitude harder to create, since this one visualizes what actually happens in his algorithm and the better one would require an algorithm that tracks more things.
- cbcivyxt 3y ago[dead]
- appplication 3y agoThe current one also broke in my case (mobile safari). The three smallest bars just sort of disappeared right before the last swap.
- sentientslug 3y agoIt’s noted on the page right above the visualization that it doesn’t work on mobile
- deleted 3y ago[deleted]
- michaelr1998 3y agoyou must be a blast at parties /s
- dackerlunghack 3y ago[dead]