Bubble Sort Animation by Y. Daniel Liang using JavaScript and Processing.js

Usage: Perform bubble sort for a list of 20 distinct integers from 1 to 20. Click the Step button to swap the highlighted red element with its next neighbor if it is greater than the neighbor. Click the Reset button to start over with a new random list.