Added Fraction Visualizer and Updated Insertion Sort Demo

I have added an interactive pie graph fraction visualizer to visualize fractions in my Portfolio. I have also updated my insertion sort demo with error handling and a listing of the step numbers in the visualization and text output.

Both of these interactive pages use the p5js library, which is currently my favorite library for creating graphics in JavaScript. An updated port of the Processing language to JavaScript, it greatly simplifies graphics programming in the language, among other things.

A future improvement I would like to add to my pie graph fraction visualizer is dynamically displaying the fraction generated using the MathJax library as well. Using MathJax with static pages is relatively straightforward, but dynamically rendering a value in MathJax requires some extra effort. I’m currently trying to determine why the example page given by the MathJax site to do this generates errors when I run it.

If you don’t see the updates and are still seeing the old pages or code (for example, the insertion sort not generating an alert for non-numeric input), clearing your browser cache may resolve the issue.


Posted

in

by

Tags: