Visualizing Bubble Sort in 5 Minutes Using HTML5 Canvas API

For most developers, bubble sort is one of the first algorithms we learn. Therefore, visualizing it can be highly satisfying and feels a bit like meeting an old friend after a long time. This article will take you through visualizing the bubble sort algorithm using HTML5 canvas API. If you would like to jump straight to the results and have a look at the code, here is a codepen. In the meantime, below is a little sneak peek of what we are going to accomplish here....

November 2, 2020 · 3 min · 597 words · Gal Elmalah