Skip to content

A simple Lorenz attractor interactive toy written in Janet using the Raylib bindings for Janet.

License

Notifications You must be signed in to change notification settings

dfuenzalida/lorenz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lorenz attractor toy

A simple Lorenz attractor interactive toy written in Janet using the Raylib bindings for Janet.

lorenz simulation

Building from source

On Linux, the following libraries are required to use RayLib: libxcursor-dev, libxrandr-dev, libxinerama-dev and libxi-dev. On Debian you can install them with sudo apt install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev.

Finally, build with: jpm build and launch the program with ./build/lorenz

Interactive options

  • Move the camera with the mouse
  • ESC closes the application
  • 1 and 2 slow down/speed up the animation
  • R to randomize (reset) the particles to a random location
  • Space toggles the FPS display
  • D changes between the particle display modes (points, lines, cubes, etc.)
    • Holding C does the same, but quickly
  • M toggles the mouse cursor
  • P changes the color palette
  • O cycles fast through the color palettes
  • F toggles windowed mode or full-screen

Other interesting chaotic maps

About

A simple Lorenz attractor interactive toy written in Janet using the Raylib bindings for Janet.

Topics

Resources

License

Stars

Watchers

Forks

Languages