Coding Challenge 21: Mandelbrot Set
About
No channel description available.
Latest Posts
Video Description
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
Master Mandelbrot with These Essential Tools
AI-recommended products based on this video

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

18.5 Inch Portable Touchscreen Gaming Monitor, High Resolution 1920x1080 with HDR, for PC, Phone Game Console, Easy Connection, Large Display

Gawfolk 32 Inch 4K UHD (3840 x 2160) High Resolutionīŧ60Hz Ultra-Thin Bezel Computer Monitor īŧwith HDMI/DP, Home Office Business PC Monitor, Black

MSI Forge GK600 TKL W Sky US 2.4GHz Wireless (MS-8ZA9 and WD02), Bluetooth RGB Lighting Gaming Keyboard with 1.06-inch Display, 4000mAh

Logitech K400 Plus Wireless Touch TV Keyboard With Easy Media Control and Built-in Touchpad, HTPC Keyboard for PC-connected TV, Windows, Android, Chrome OS, Laptop, Tablet - Black

Newest Android 14 Tablet, 22GB RAM 128GB ROM 1TB Expansion, 10.1 Inch Touchscreen Tablet, Powerful Octa-Core, 8000mAh, 2 in 1 Tablet PC with Keyboard, Mouse, Bluetooth, GPS, WiFi - Purple

Android 14 Tablet 10.1 inch 22GB RAM 128GB ROM 1TB Expand, 8000mAh Tablets with Keyboard Mouse, Octa-Core, HD Touchscreen, 5G Wi-Fi, BT 5.0, GPS, Widevine L1, Split Screen, Face Unlock - Blue

Redragon M612 Predator RGB Gaming Mouse, 8000 DPI Wired Optical Mouse with 11 Programmable Buttons & 5 Backlit Modes, Software Supports DIY Keybinds Rapid Fire Button

Lenovo Legion KM310 RGB Wired Gaming Keyboard & Mouse Combo - K310 Keyboard w/Silent Operation & Compact Water-Resistant Design - M300S Mouse with 8000 Adjustable DPI, 220 IPS, 6 Programmable Buttons

Lenovo M210 RGB Wired Gaming Mouse for PC, Laptop, Computer with Windows & Chrome OS - 3 Zone RGB, 8000 DPI Adjustable Sensor, 7 Programmable Buttons â Palm Grip Mouse for Gamers (Black)

High-Performance Graphics Card Fan CF9010U12D for TUF RTX 3060/3060 TI/3070/3080/3090 - DC 12V Cooling Solution

MSI MAG MT201D - Premium Heavy Duty Dual Monitor Stand Arms, 17-45" Support, VESA Compatible, Adjustable Spring Mount, 44 lbs per Screen, Clamp & Grommet, Quick Release Plate - Black

Mind Reader Monitor Stand, Height Adjustable, Ventilated Laptop Riser, Office, Metal, 36.8L x 23.5W x 14H cm, Black

Seventable L Shaped Computer Desk with Drawers 47.2 inch,Gaming Desk with Power Outlets & LED Lights,Reversible Office Desk with Storage Shelves,Corner Desk with Monitor Stand for Home Office White





![Apple ][ Coding Challenge: Fractal Tree](https://imgz.pc97.com/?width=500&fit=cover&image=https://i.ytimg.com/vi/UNkHditYGls/hqdefault.jpg)














