In my spare time, I like to create small javascript apps. Sometimes they are just for fun, but sometimes I write them for demonstrating mathematical concepts that I happen to be teaching at the time. I've collected the more functional projects here. Be warned though: I have only really tested these on my computer using my browser (Chrome), so YMMV.
-
Photon
This is a game that I'm currently working on. The object of the game is to use mirrors and prisms to get the correct color of light beams into the circular goals. I'm attempting to design this game so that there is a hidden lesson on optics as one progresses through the levels.
-
Mario Kart Frolf
This one actually has an intro page explaining what it's about. In any case, this is the one code I've written on this page that I've gotten the mose use out of, and enjoyed the most.
-
Elemental Sound
Ever wondered what argon sounds like? How about rubidium or ionized uranium? After watching Minute Physic's The Sound of Hydrogen video and the accompanying tutorial, I decided to replicate their results, but also fill in the rest of the periodic table. I wrote a Python script to scrape the data from the NIST website, wrote a MatLab script to generate the sounds from that, and then encapsulated it all into what you see here.
-
2x2 Matrix Visualizer
A small tool that visualizes how a 2x2 matrix operates. Changing the entries in the matrix (in the center of the screen) automatically changes the resulting shape on the right hand side.
-
Ball Game
This is a small game that I developed. The object of the game is to maneuver the white ball (using the wasd keys) into the other balls so they land into their appropriately colored wells. Once a ball is in the correct well, a timer counts up... forever. That's as far as I got.
-
D&D Character Manager
I wrote this app when I was frequently playing D&D and shuffling around pages and pages of powers, abilities, skills, etc. for my character. I actually set it up to be a Chrome extension, which you can obtain from GitHub here. The app reads .dnd4e files (generated from the online WOTC character generator) from the local data/ directory, and displays the information in collapsable, tidy boxes, along with functionality for keeping track of current HP, number of healing surges, status effects, etc.
-
Double Pendulum
A demonstration of a double pendulum system. You can change the initial conditions via the text boxes at the bottom.
-
Harmonic Oscillator
A demonstration of a harmonic oscillator (via a mass-spring system). Set the system parameters in the text boxes, and click-drag the mass.
-
Harmonic Oscillator 2
An updated demonstration of a harmonic oscillator, allowing for multiple systems. It shows the animation of the system, along with the plot of position over time, and the phase portrait.
-
Sine Curves
A demonstration of sine curves. Allows for multiple different sine curves, so students can compare how each parameter in a sine curve changes its shape.
-
Ball Demo
A bunch of bouncing balls. Clicking on the boxes in the upper left changes the parameters of the system.
-
Bubble Spinner
An unfinished bubble spinner game.
-
Circular Slide Rule
A demo of a working circular slide rule. Try dragging the pointer and the inner stator. This project eventually led to a real life object.
-
Play with Spring Systems
Create systems of springs by highlighting two balls, and pressing "s" to create a spring between them. You can also change the look of the springs by pressing "e", change their length by pressing the up and down keys, and also turn off gravity by pressing "g". I have to say, this one is pretty fun to play with!