jedluk / Lissajous

Lissajous curve generator (C++11 w. SDL2). Possibliity to generate your own bitmap included.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lissajous curve generator

Console application written in C++11 with SDL2 [working on Windows platform].

Alt Demo

Math background

Lissajous curve can be described via parametric equation:

x(t) = A sin(bt + c)
y(t) = D sin(et)

The patterns which we can obtain by changing curves parameters are really impress.

Running app

  • Clone repository by typing in command prompt: git clone https://github.com/jedluk/Lissajous .
  • You can launch the app in two ways:
    • directly from console by typing:
    cd bin
    Lissajous.exe
    • by double clicking on Lissajous.exe (command prompt will launch automatically in background)
  • Lissajous curves will refresh after each 5 seconds
  • You can also use mapped keyboard's keys:
    • R - refresh curve factor instantly
    • S - save current view to bitmap. It will be saved in current folder

About

Lissajous curve generator (C++11 w. SDL2). Possibliity to generate your own bitmap included.


Languages

Language:C 95.5%Language:C++ 2.8%Language:CMake 1.1%Language:Objective-C 0.5%Language:MATLAB 0.0%