Use WebGL to explore covectors.
Go to the website.
You can share your favorite expressions by appending #f=y&g=-x
or the like. For instance,
Note that the variables u
and v
represents the mouse position (u,v)
.
Steve Gubkin had the insight of plotting 1-forms this way.
This code uses some of the GLSL code from @rreusser, and relies on npm packages like pan-zoom and dat.gui. Mathematical expressions are parsed and converted into GLSL using math-expressions. In spirit, this is a WebGL version of the old plotter which owes much of its existence to Steve Gubkin.