This project draws pretty pictures of magnetic fields.
- Place infinitely long wires perpendicular to the image plane at random points.
- Pick random currents to flow through those wires.
- Calculate the resulting magnetic field across the image plane.
- Seperately calculate a similar (magnitude only) field used for color mapping.
- Generate a list of points to start drawing streamlines from.
- Sort that list by the colormap value of each startpoint.
- Render all the streamlines!