Interactive visualizations of classic sorting algorithms rendered on HTML5 Canvas.
Live Demo
The live demo now runs as a standalone module so it can be moved into a separate repository and published independently via GitHub Pages.
One of the first projects built outside of a classroom. The original was written in Processing (a Java variant designed for visual applications), and this web version recreates the same visualizations using HTML5 Canvas and JavaScript.
Six comparison-based sorting algorithms are implemented:
Each algorithm animates element comparisons and swaps in real-time, making it easy to see how different strategies traverse and reorder the data.
Above: the original Processing-based visualization.