Discrete Fourier transform in 3D using PyOpenGL.
-
Download the repository (or just the
main.py
file will suffice). -
Make sure that
PyOpenGL
is installed (you may usepip
to install it:$ pip install PyOpenGL PyOpenGL_accelerate
).
-
Run the
main.py
file. -
You may change the window width and height on line 7 of the file.
-
Below that are various examples for starting points, including randomly generated points, preset points and a helix.
-
The variable
dt
can be varied to change the drawing speed, and the variablecyclic_drawing
can be set toFalse
to not join the last point to the first.
Click here to know more about the mathematical details.