Lissajous Curve Generator
Draw curves by setting the frequency of a vertical and horizontal oscillator.
Lissajous curves are named after Jules Antoine Lissajous, a french physicist that invented the device to create this figures.
Controls:
Up/Down - Increase/Decrease the frequency of the vertical oscillator.
Left/Right - Increase/Decrease the frequency of the horizontal oscillator.
Z - change the offset of the horizontal oscillator (sine or cosine)
X - change the offset of the vertical oscillator (sine or cosine)
OMG that is so useful. I'm going to rewrite all my enemy motion code in the game I'm working on to do things like this now.
thanks to everyone! Godmil that is great, i know shoot-em-ups are filled with trigonometry, sine/cosine functions make everything feel organic and less "robotic" if that makes sense :P
[Please log in to post a comment]