Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - Lissajous Figures

Author
Message
Neuro Fuzzy
16
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 19th May 2012 15:39 Edited at: 7th Jun 2012 06:15
Lissajous figures appear when analyzing the motion of perpendicular vibrations with different frequencies. Basically, if you do a parametric plot with Y=A*Sin(w*t+y0), and X=B*Sin(v*t+x0), you get a lissajous figure. A and B are the magnitudes of the vibrations, and v and w are the angular velocities (2 Pi times the frequency). These can be visualized as rotations of a circle.

This is what the code draws:


sliders change the radii (A and B), and the angular velocities (v and w)
[edit]
updated so you can also change the initial phase, y0 and x0.
[edit2]
and the really interesting ones to see are the ones where v/w is rational. For example, if v was pi and w was 1, the pattern would never repeat! Sorry I didn't give any easy way to control v/w, you'll have to hunt around for cool ones.


[edit3]
And this is an awesome animation (not mine) showing other types of lissajous figures with different waveforms (so instead of the dots traversing on a circle with constant angular velocity, they move on some other weird shape with constant angular velocity)


Attachments

Login to view attachments
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 20th May 2012 13:50 Edited at: 20th May 2012 13:53
mind boggling


but awesome non-the-less

EDIT

Quote: "Parameter for 'INK' do not match 'Foreground Color,Background Color' at line 110."


line 110 =
Quote: " ink rgb(255,255,255)"


Neuro Fuzzy
16
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 20th May 2012 14:41
ah, sorry, that's a matrixutils thing you can use, I try to remember to type in 0 afterwards, but it compiles fine without it with matrixutils. I'll add it.

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 20th May 2012 16:15 Edited at: 20th May 2012 16:20
i got just

Matrix1Util_01.dll
Matrix1Util_03.dll
Matrix1Util_04.dll
Matrix1Util_07.dll

as I bought Dark Occlusions

I will try to find the latest M1Utils and install it again... but I remember one of them conflicts... with another plugin will have to check my old installation good thing I still have it...

EDIT

Yeah 16 conflicted with something else so hope thats not the one needed lol

EDIT

retried your code, and wow!

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 20th May 2012 17:34

Login to post a reply

Server time is: 2024-03-28 20:00:34
Your offset time is: 2024-03-28 20:00:34