Skip to content

This Github repository contains code for a p5.js visualization of the Lorenz Attractor, which is a non-linear system of three differential equations that exhibits chaotic behavior.

License

Notifications You must be signed in to change notification settings

zemetskiym/lorenz-attractor-visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lorenz Attractor Visualization with p5.js

The Lorenz attractor is a three-dimensional dynamical system that exhibits chaotic behavior. It was first described by Edward Lorenz in 1963 and is often used as a simplified model for atmospheric convection. The system is defined by a set of differential equations that describe the motion of a point in three-dimensional space. The equations are highly nonlinear and can produce complex and unpredictable behavior over time.

This repository contains a simple visualization of the Lorenz attractor using p5.js, a JavaScript library for creative coding. The visualization is created using the WEBGL renderer, which allows for the creation of a 3-dimensional object that accurately represents the Lorenz attractor. The movement of particles through the attractor is visualized with trails that follow the particles' path through the system. The resulting animation provides a captivating and immersive representation of the Lorenz attractor and its chaotic behavior.

Preview

2023-04-05 18_37_45-Window

Interacting with the 3D Scene

To interact with the 3D scene, use your mouse to rotate and pan the view:

  • Left mouse drag: rotate the view
  • Right mouse drag: pan the view

By rotating and panning the view, you can explore the Lorenz attractor from different angles and gain a deeper understanding of its chaotic behavior.

Running the project locally

To run this project locally, you will need to follow these steps:

  1. Clone the repository: git clone https://github.com/zemetskiym/lorenz-attractor-visualization.git
  2. Navigate to the project directory: cd lorenz-attractor-visualization
  3. Open index.html in your preferred web browser

Contributions

Contributions to this project are always welcome! If you would like to contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch: git checkout -b my-new-feature
  3. Make your changes and commit them: git commit -am 'Add some feature'
  4. Push to your branch: git push origin my-new-feature
  5. Submit a pull request

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

This Github repository contains code for a p5.js visualization of the Lorenz Attractor, which is a non-linear system of three differential equations that exhibits chaotic behavior.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published