Coding Challenge #12: The Lorenz Attractor in Processing
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