Coding Challenge #21: Mandelbrot Set with p5.js

Coding Challenge #21: Mandelbrot Set with p5.js

378.800 Lượt nghe
Coding Challenge #21: Mandelbrot Set with p5.js
In this coding challenge, I program from scratch the Mandelbrot set with p5.js Code: https://thecodingtrain.com/challenges/21-mandelbrot-set-with-p5js 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/KsV1wWLqd 🎥 Previous video: https://youtu.be/jrk_lOg_pVA?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 Next video: https://youtu.be/fAsaSkmbF5s?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: 🗄 Wikipedia on Mandelbrot Set: https://en.wikipedia.org/wiki/Mandelbrot_set 💾 Mandelbrot Set Explorer: https://meiamso.me/old/mandelbrot/mandelbrot.php Related Coding Challenges: 🚂 #22 Julia Set in Processing: https://youtu.be/fAsaSkmbF5s 🚂 #140 Leibniz Formula for Pi: https://youtu.be/uH4trBNn540 🚂 #168 The Mandelbulb: https://youtu.be/NJCiUVGiNyA Timestamps: 0:00 Introducing today's coding challenge: the Mandelbrot set 1:22 What is a complex number? 6:06 Multiplying two complex numbers 7:51 The Mandelbrot set is all of the complex numbers that stay bounded 8:40 The initial sketch sets every pixel to gray 12:00 Calculate the real and complex components for the next generation 13:03 What does it mean to be bounded? 14:58 Set the brightness based on number of iterations 16:46 Store the original values of a and b 20:05 Set the brightness by mapping to maxIterations 21:50 Add sliders to add ability to zoom in on the Mandelbrot set 24:58 Conclusion and suggestions for variations 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 #mandelbrot #fractal #complexnumber #imaginarynumber #p5js #javascript