Coding Challenge 21: Mandelbrot Set

The Coding Train â€ĸ June 13, 2016
Video Thumbnail

About

No channel description available.

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

Loading...
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

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

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
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

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

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
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

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

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
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

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

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
18.5 Inch Portable Touchscreen Gaming Monitor, High Resolution 1920x1080 with HDR, for PC, Phone Game Console, Easy Connection, Large Display

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

(0)
$226.59
$2.99 delivery Aug 19 - 29
Loading...
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

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

(18)
$212.49
FREE delivery Tue, Oct 7
100+ bought in past month
Loading...
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
Amazon's Choice

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

(53)
$74.99
FREE delivery Sat, Jan 3Only 8 left in stock.
100+ bought in past month
Loading...
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
Best Seller

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

(38,516)
$39.98$35.98
FREE delivery Thu, Sep 4
500+ bought in past month
Loading...
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

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

(471)
$159.99
FREE delivery Wed, Aug 27
Loading...
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

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

(960)
$119.99
FREE delivery Wed, Aug 27
Loading...
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

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

(8,052)
$22.49
FREE delivery Thu, Aug 21 on your first order
500+ bought in past month
Loading...
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 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

(14)
$109.39
FREE delivery Tue, Jun 17
Loading...
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)

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)

(52)
$26.62
FREE delivery Tue, Jun 17 on your first order
Loading...
High-Performance Graphics Card Fan CF9010U12D for TUF RTX 3060/3060 TI/3070/3080/3090 - DC 12V Cooling Solution

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

(0)
$68.86
FREE delivery Mar 10 - 30
Loading...
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

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

(168)
$124.99
FREE delivery Wed, Jan 14
50+ bought in past month
Loading...
Mind Reader Monitor Stand, Height Adjustable, Ventilated Laptop Riser, Office, Metal, 36.8L x 23.5W x 14H cm, Black

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

(95)
$46.30$46.13
FREE delivery Mon, Aug 11
Loading...
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

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

(597)
$129.99
FREE delivery Thu, Jun 26
50+ bought in past month
Loading...
Seventable L Shaped Computer Desk with Power Outlets & LED Lights, 44.6"Small Home Office Desk with 3 Fabric Drawers, Reversible Gaming Desk with Storage Shelves, Corner Desk with Monitor Stand, White

Seventable L Shaped Computer Desk with Power Outlets & LED Lights, 44.6"Small Home Office Desk with 3 Fabric Drawers, Reversible Gaming Desk with Storage Shelves, Corner Desk with Monitor Stand, White

(100)
$119.99
FREE delivery Thu, Jun 26