The latest program we were assigned was to animate a kind of sort of our choosing, we chose to do a insertion sort. A insertion sort is when one number is compared to the next and is switched when the first number is greater than the second number, all the way to the point where the number before it is less than the number. In order to animate this sort we need to use if statements instead of for loops to animate the sort. Using a for loop is unnecessary because the draw is already a loop, therefore we converted the for loop sorting into if loops. This should create an insertion sort.
here is the link to the sort:
(will upload the link soon)