Coding Challenge #12: The Lorenz Attractor in Processing

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=f0lkz2gSsIk



Duration: 21:21
393,005 views
8,428


In this coding challenge, I show you how to visualization the Lorenz Attractor in Processing. Code: https://thecodingtrain.com/challenges/12-lorenz-attractor

πŸ•ΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/pwr_7FUUq

πŸŽ₯ Previous video: https://youtu.be/IKB1hWWedMk?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Next video: https://youtu.be/BV9ny785UNc?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
πŸ“‘ Lorenz System on Wikipedia: https://en.wikipedia.org/wiki/Lorenz_system
πŸ“– Lorenz Attractor: http://paulbourke.net/fractals/lorenz/
πŸ“š PeasyCam library: http://mrfeinberg.com/peasycam
πŸ’» beginShape(): https://processing.org/reference/beginShape_.html
🧾 What is a differential equation?: https://www.myphysicslab.com/explain/what-is-a-diff-eq-en.html
πŸ“• My NOC class on Kadenze: https://www.kadenze.com/courses/the-nature-of-code/info

Videos:
πŸ”΄ Livestream Archive: https://youtu.be/gw_TR1tycWQ?t=2202s

Related Coding Challenges:
πŸš‚ #13 Reaction Diffusion Algorithm: https://youtu.be/BV9ny785UNc
πŸš‚ #160 Spring Forces: https://youtu.be/Rr-5HiXquhw

Timestamps:
0:00 Introducing today's topic
0:55 Differential Equations
2:30 Lorenz systems
3:36 Non-linear, chaotic systems
4:30 Start Coding!
6:07 Every cycle through draw is 1 unit of time
6:30 Add formulas to code
8:19 Change of time per frame
10:10 Modify the inputs
12:48 Plot the system
14:08 Scale the scene
14:42 Add an array list to store the data
16:00 Write an enhanced loop
17:00 Add beginShape() and endShape() to connect the points
17:52 Change to HSB mode and add color
19:07 Add an offset
20:06 Conclusion and design possiblities

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ Website: http://thecodingtrain.com/
πŸ‘Ύ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: https://github.com/CodingTrain
πŸ’¬ Discord: https://discord.gg/hPuGy2g
πŸ’– Membership: http://youtube.com/thecodingtrain/join
πŸ›’ Store: https://standard.tv/codingtrain
πŸ–‹οΈ Twitter: https://twitter.com/thecodingtrain
πŸ“Έ Instagram: https://www.instagram.com/the.coding.train/

πŸŽ₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: https://p5js.org
πŸ”— p5.js Web Editor: https://editor.p5js.org/
πŸ”— Processing: https://processing.org

πŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#math #lorenzattractor #processing #java







Tags:
processing
attractor
lorenz system
processing (programming language)
programming
mathematics (field of study)
daniel shiffman
processing tutorial
nature of code
processing 3
challenge
coding
coding challenge
creative coding
daniel shiffman processing
learning processing
programming challenge
3d
pvector
differential equation
lorenz processing
lorenz java
lorenz attractor
strange attractor
strange attractors
strange attractor processing
chaos