Log In  


Cart #lissajous-0 | 2023-04-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7

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)

7


1

this is very kewl


1

Wow


1

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]