The author added a drawing routine to a comparison function to see what the sort function was doing for different C libraries. Every time it’s called for a comparison, it writes out a snapshot of the array as a Netpbm PPM image.
with code animation and data structuresfor comparisons amongst sorting algorithms