This generates lissajous figures. Use the variables to change how the figure looks (don't worry, the rainbow is just for decoration). Press x to type the x value, and press y to type the y value. For a high resolution fullscreen version go to https://phosphorus.github.io/app.html?id=183960791&turbo=false&full-screen=true
This uses pen to draw the figure, and uses the parametric form of lissajous figures to draw it. The parametric form is (sin(xt), sin(yt+d)) where d is the difference between the axis. Lissajous figures can be drawn using two pendulums controlling the same pen.