The Mandelbrot Fractal Explained!

  Рет қаралды 76,163

The Art of Code

The Art of Code

Күн бұрын

Twitter: @The_ArtOfCode
Facebook: / theartofcode
Patreon: / theartofcode
The Mandelbrot fractal, or Mandelbrot set as it's sometimes called. Most people have seen its iconic shape and many of us have marveled at its beauty and complexity. It has become somewhat of a poster child for chaos theory and perhaps math in general and it is the go to example for what you can do with 'complex' numbers. It is literally infinitely deep and in my mind, infinitely beautiful. But how does it work? Lets find out!
Follow me on twitter @The_ArtOfCode

Пікірлер: 224
@fuglsnef
@fuglsnef 6 жыл бұрын
This is the best explanation of both the Mandelbrot set and complex numbers I've ever seen, great work!
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
aww thanks. I appreciate your appreciation :)
@expchrist
@expchrist 4 жыл бұрын
@@TheArtofCodeIsCool this really was an exceptional video
@LaukkuBah
@LaukkuBah 4 жыл бұрын
I think the real lesson here is programming before hoes
@TheArtofCodeIsCool
@TheArtofCodeIsCool 4 жыл бұрын
LOL
@realcygnus
@realcygnus 6 жыл бұрын
top notch channel.......best visual explanation I've seen
@Kizzudoramu
@Kizzudoramu 5 жыл бұрын
This is the absolute best explanation of fractal generation I've ever seen. The dancer metaphor was perfect. Great video, thank you.
@codebro1785
@codebro1785 5 жыл бұрын
Clever metaphor, beautifully explained. Thank you.
@MariusPartenie
@MariusPartenie 5 жыл бұрын
Hello! Great video. While I watched some videos about the Mandelbrot set that delve into the mathematics (on the Numberphile channel), your analogy with the dance competition really connected everything together. Thanks!
@vinciardovangoughci7775
@vinciardovangoughci7775 4 жыл бұрын
Just started watching your videos. Love it man. Can't wait to watch them all
@ejejej9200
@ejejej9200 5 жыл бұрын
An incredible video, with a very thorough explanation. Thank you so much for taking the time to make this. Bravo!
@davidbigras1012
@davidbigras1012 2 жыл бұрын
Wow!!! Never thought I could have such a deep understanding of that set!!! You did a fantastic job!!!
@godramen7104
@godramen7104 Жыл бұрын
Absolutely brilliant explanation of the Mandelbrot Set. I always come back to this video to learn more about it. This is beautifully done.
@alextrollip7707
@alextrollip7707 2 жыл бұрын
This was mindblowing. The comparison, example and presentation was top notch. Amazing.
@effka2660
@effka2660 4 жыл бұрын
Most excellent visualisation! Thanks!
@scatoutdebutter
@scatoutdebutter 2 жыл бұрын
Great job. Great explanation. This is about the fifth video I’ve watched on this and it really helps. Thanks.
@anastafah7795
@anastafah7795 5 жыл бұрын
man you are in another level in explaining, thanks so much!!!
@THE_ONLY_GOD
@THE_ONLY_GOD Жыл бұрын
Bravo! That transition from maths to code was great and filled in what had been missing about that. Thanks! Truly appreciated!
@donaldviszneki8251
@donaldviszneki8251 5 жыл бұрын
>That *was* my girlfriend
@Egosumali
@Egosumali 6 жыл бұрын
People like you make youtube great , such a good video, thanks man i'll be waiting your future videos
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
aww thanks man!
@cebustama
@cebustama 4 жыл бұрын
I saw the dance hall setup you created and instantly subscribed. Amazing video and content!
@nameno7032
@nameno7032 10 ай бұрын
Best dance competion i ever watch Please make more of, this kind of analogy is so much fun and easy to understand the concept behind.
@lindyvern-barnett4390
@lindyvern-barnett4390 2 жыл бұрын
Thank you! Amazing! Mind blowing. Can't wait for more!!!
@video_games23
@video_games23 5 жыл бұрын
Only 5k subscribers? Super underrated.
@jbGraphics_
@jbGraphics_ 4 жыл бұрын
I've never heard the dancer analogy - this is really awesome, thank you
@lydianlights
@lydianlights 4 жыл бұрын
Very nice explanation of the Mandelbrot set! And very cool idea to play with the rules like that to get some crazy effects
@sacredbanana
@sacredbanana 6 жыл бұрын
I never thought I'd finally understand the Mandelbrot set today, but I did. You sir deserve a big Easter egg!
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Cool! I'm glad it helped you :)
@user-ef3ej4pq4f
@user-ef3ej4pq4f 4 жыл бұрын
Amazing, thanks for you effort master!
@KeithBond
@KeithBond 4 жыл бұрын
Really great work. You deserve a ton of subs.
@myeffulgenthairyballssay9358
@myeffulgenthairyballssay9358 4 жыл бұрын
This is a wonderful description of the function that divides existence into this divine map. Thank you.
@gennaroschiano8085
@gennaroschiano8085 2 жыл бұрын
You’re the man. It took me 4 years of hard work to start understanding your basic videos. One Love!
@ExplainIttoMe_1
@ExplainIttoMe_1 5 жыл бұрын
Superb video! Very nice explanation and the visuals were a nice touch!
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
Thank you!
@sanchit8818
@sanchit8818 Жыл бұрын
Just found this video today. I have always wondered about this but never found an explanation this good. Thanks!
@ZoneKei
@ZoneKei 4 жыл бұрын
Absolutely fantastic explanation. The dance-floor analogy was cute and effective.
@ahmedsalman17
@ahmedsalman17 6 жыл бұрын
Excellent video Thank you very much
@mariusirgens5555
@mariusirgens5555 11 ай бұрын
Superb explanation!
@Li-bn2tw
@Li-bn2tw 4 жыл бұрын
You are so brilliant! 👍👍👍👍 I love your version of explanation!!
@TheArtofCodeIsCool
@TheArtofCodeIsCool 4 жыл бұрын
Glad you liked it!
@martingachagua4554
@martingachagua4554 4 жыл бұрын
Whizz Stuff. You Refreshed My Coding. The Dance Floor illustration And How The Steps Could iterate Was Superb. Then You Showed How Your Computer Operated On The Variables To Create The Mandelbrot Fractal. Your Labor Was Worth It! After A Few Videos . . . . This Was The 4th, . . . . . I Feel That You Took It Home For Me. Appreciated.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 4 жыл бұрын
I'm glad you got something out of it!
@clearwavepro100
@clearwavepro100 4 жыл бұрын
Ingenious demonstration! :)
@miadzd6698
@miadzd6698 2 жыл бұрын
Excellent and simple, thank you
@dh7222
@dh7222 6 жыл бұрын
thank you very much for this! really informative and well edited video!
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Thanks! I'm glad you found it informative :)
@matsp.5215
@matsp.5215 Жыл бұрын
Brilliant video!
@gabriel-mk7jk
@gabriel-mk7jk 6 жыл бұрын
Amazing, studying this in computer graphics for over a year and neither my tutors or anyone on the internet has been able to explain the number's behavior so simply. Really clicked after watching this, bless x
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Wow, great! I'm glad it clicked :)
@peachfuzz7991
@peachfuzz7991 3 жыл бұрын
This makes so much sense thank you so much
@elleniaw
@elleniaw 6 жыл бұрын
Some great insightful points you are making. I really enjoyed the way you explained complex numbers and their rotational quality. That helped me understand their function in Quaternions a better too. Dankje
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Alsje ;)
@hitman17011986
@hitman17011986 Жыл бұрын
Woww.. Never knew someone could explain it so well.. its just amazing! Thanks a ton.
@Nanookh54
@Nanookh54 5 жыл бұрын
Agree with fuglsnef. You make it understandable for the layman. Great work man!
@rubickon
@rubickon 4 жыл бұрын
my friend, thank you for this 3 part tutorial. i cant wait to code this. i am full stack dev, and i want to enter the unity world, this project seems the best to start with. thank you.
@julienvergnaud866
@julienvergnaud866 6 жыл бұрын
awesome tutorial and funny metaphor!
@greggsannes493
@greggsannes493 4 жыл бұрын
I'm still learning but you give me hope thank you😊
@oneofthesixbillion
@oneofthesixbillion 5 жыл бұрын
Thanks, I especially appreciated 2 things. I've been confused by complex numbers and you showed how to work with them using simple algebra. Also the dancer analogy that showed how the start point affects whether the given number goes out of bounds gave me a nice conceptual understanding. I was completely confused about how the points map to colors. I didn't see any point plots or how colors are assigned to the points.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
The color mapping is usually based on the number of iterations. This can be completely arbitrary. If you divide your number of iteration by the maximum number of iterations allowed, you'll get a number between 0 and 1 You can then use that number to look up a color out of a texture. The texture could hold any color gradient you want.
@dleddy14
@dleddy14 3 жыл бұрын
This was really good. Thanks.
@abeljonathan7324
@abeljonathan7324 5 жыл бұрын
Today I found your channel, what a nice day 🙂
@chandrakanth4241
@chandrakanth4241 5 жыл бұрын
that thumb nail, You just nailed it for sure.
@YTMartin100
@YTMartin100 6 жыл бұрын
6:55 is fantastic using the initial points and seeing their progressions in animation tells a LOT about fractals ... can you make more of those?
@iangreen9383
@iangreen9383 4 жыл бұрын
nicely done!
@davidhopkins
@davidhopkins 4 жыл бұрын
Thanks for this. The dancer analogy was really helpful. I am most appreciative that you did the hard work of explaining how you square and add complex numbers. The numberphile videos pretend to explain things but they breeze right over how this works.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 4 жыл бұрын
Glad it was helpful!
@JoeCoo7
@JoeCoo7 5 жыл бұрын
OMG, I have never understood complex numbers until I watched this video. Thanks so much, this is just awesome!
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
That's awesome! Thanks for watching!
@polishka7529
@polishka7529 4 жыл бұрын
30:16 "f = ma" Wait a minute...
@kjwong4730
@kjwong4730 4 жыл бұрын
Very good explanation
@jeyko666
@jeyko666 5 жыл бұрын
Top notch analogy and unity dancing video game! :)
@mluevanos
@mluevanos 4 жыл бұрын
Enjoyed the video, thanks.
@prtamils
@prtamils 3 жыл бұрын
everybody else are explaining. You are the one Does Teaching. Thanks Mind Blown
@ClarkPotter
@ClarkPotter Жыл бұрын
This (fractals), holography, dissipative structures (and autopoiesis), and cellular automata are most of the ingredients you need to create an evolving universe replete with consciousness. Fantastic video. Subscribed.
@arplee2823
@arplee2823 6 жыл бұрын
its so easy when you explain it, thanks :)
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
I'm glad to hear it :)
@ericgreeneenglishtutoring1404
@ericgreeneenglishtutoring1404 4 жыл бұрын
You're a great teacher
@TheArtofCodeIsCool
@TheArtofCodeIsCool 4 жыл бұрын
Thank you! 😃
@JenabeSaber
@JenabeSaber 5 жыл бұрын
Very good job
@prietjepruck
@prietjepruck Жыл бұрын
Very clear explanation. Dank je wel. :-)
@__hannibaal__
@__hannibaal__ 11 ай бұрын
In the past 20 years i try very hard to visualize a fractals by reading what’s image coding bitmap, windows API, C, C++ , and at the end I FAIL , so i abandoned totally the project but i keep studying Fractal analytically, by hand and realize very awesome results. Now when i return to programming i realize how these thing is easy.
@maribelmenese4845
@maribelmenese4845 Жыл бұрын
You just earned a sub!!
@Crazeyfor67
@Crazeyfor67 4 жыл бұрын
A bit over my head, but all in all I finally got an idea what's actually happening to make such deep beauty. Thanks
@Dad-fw7ux
@Dad-fw7ux 6 жыл бұрын
FINALLY a video that explains this set without losing me, before this I only knew it had something to do with infinity.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Cool! I'm glad it helped :)
@peiyihou8609
@peiyihou8609 4 ай бұрын
amazing, it's the best one in youtube
@boristsvetanov5588
@boristsvetanov5588 5 жыл бұрын
perfect video
@THE_ONLY_GOD
@THE_ONLY_GOD Жыл бұрын
There is a way to nest another shader in a shadertoy shader? For instance, if I wanted to have portions of a shader output colored with another shader? Thanks in advance for explaining how!
@THE_ONLY_GOD
@THE_ONLY_GOD Жыл бұрын
Thanks! Can better explain the z equation portion of the shadertoy code? How is that z^2? Thanks in advance!
@davidhopkins
@davidhopkins 2 жыл бұрын
This is hands down the best explainer of the Mandelbrot set. Is the dance program you use available for the public? My nephew is obsessed with this stuff and I have been struggling to explain it to him. I think it would really help if he could plop down his own dancers on squares of his choosing and watch them go.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
It's not available at the moment but you're not the first one to ask so I'll polish it up a bit and release it to the public.
@davidhopkins
@davidhopkins 2 жыл бұрын
@@TheArtofCodeIsCool let me know if you need a beta tester. 😉
@telecommunicationslawandre6751
@telecommunicationslawandre6751 2 жыл бұрын
This is an excellent addition. Thank you. Can I use it in my classes?
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
You mean show this video? Sure! What classes do you teach?
@telecommunicationslawandre6751
@telecommunicationslawandre6751 2 жыл бұрын
@@TheArtofCodeIsCool Yes, I've love to be able to record it and then include some of it in my classes. I teach Communication classes. I think I've come up with a Fractal Equation for Communication. It fits perfect. Does that make sense?
@vwr0527
@vwr0527 3 жыл бұрын
Thanks! Made my first mandelbrot from watching this!
@sawdustwoodchips
@sawdustwoodchips 3 жыл бұрын
Hi there, just stumbled across your video - the explanation was great!! - I have tried using your code in shadertoy, but I am getting lots of errors. do you have a listing of the code - I get lots of undefined. will understand if you do not want to share. all teh best!the
@DaRza17
@DaRza17 5 жыл бұрын
I was kinda shocked when I saw this channel only has 2275 subs... wtf
@bbrws
@bbrws 5 жыл бұрын
right? this should have so many more views!!
@liilianalopez1155
@liilianalopez1155 3 жыл бұрын
I need to brush up on my number theory but this was the best explanation by far
@sallybugs1695
@sallybugs1695 3 жыл бұрын
Much appreciation i was wondering i we can we get the source code
@jasonjoby4771
@jasonjoby4771 5 жыл бұрын
wow okay you're amazing
@studyrxyoutube
@studyrxyoutube 3 жыл бұрын
👁👄👁 idk why but you are dope. 🙌🏽 thanks for the video. Never even coded for anything like this besides MySpace and some practice as a hobby. Just finished your part 1 of coding The Mandelbrot and I’m going to give it a shot! 😅 I have a crappy Mac so let’s see if it even opens The program
@onaecO
@onaecO Жыл бұрын
SOOOOOOOOOO cool!
@alexclay7570
@alexclay7570 6 жыл бұрын
I would love to share this video on Twitter. Do you have an account there that I can credit? :)
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Aww thanks! It's @The_ArtOfCode
@EmilMacko
@EmilMacko 6 жыл бұрын
This video easily deserves millions of views!
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Aww thanks! You can share it with the people you know to get to the million faster ;)
@anmaral-sharif1381
@anmaral-sharif1381 6 жыл бұрын
It would be awesome if you make a video about explaining realtime 3D volumetric-light next.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
I have never really done volumetric light. I guess I should first do one on ray tracing and ray marching.
@radrook7584
@radrook7584 2 жыл бұрын
These fractal patterns are evident in nature and are not just computer-generated possibilities.
@michaeljames5936
@michaeljames5936 3 жыл бұрын
Brilliant. I just about got it. A few more examples of different R and i numbers would have clinched it for me. The coding bit completely lost me, but that's ok. Thank you. Thank you very much.
@michaeljames5936
@michaeljames5936 3 жыл бұрын
I dropped maths, some thirty years ago, to get into a better physics class, just before we did complex numbers. I've missed maths since.
@hangli3232
@hangli3232 2 жыл бұрын
Hi, this is probably a stupid question, but could you please tell me why 16:45, you use (r+i) to represent a point, I thought it would be ( r , i )? Or is there any resource or key words that I can search and learn this? Thank you!!
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
It's just how complex numbers are represented and how the math works out. You are right that in (computer graphics) vector form, it would be represented as (r, i)
@jhonkitri
@jhonkitri 2 жыл бұрын
Heloo sir, can you make a video about Mandelbrot set Fractal accelerator using quartus II 13.0SP ?
@arkondigital1496
@arkondigital1496 Жыл бұрын
Literally Art of Code
@THE_ONLY_GOD
@THE_ONLY_GOD Жыл бұрын
Can confirm if this understanding of difference between Mandelbrot and Julia shader calculations is correct?: Main difference is seemingly that a Mandelbrot set has a C val that changes every pixel as it basically seems to do a “for loop” style scan across each row of texture coordinates row by row in the entire frame. So at each point it is calculating the pixel color for, it inputs that texture coordinate under that pixel as C. In a julia set Z is initially set to the texture coordinate it’s rendering the pixel color for, but C is a constant coordinate val that is shared by every pixel (texture coordinate under the pixel) calculation and that val is from a specified n+i plane coordinate selected. (so in an interactive shader, the coordinate under the touch is C and then Z is every pixel coordinate in a similar “for loop” style row by row scan as the Mandelbrot). That is seemingly how that functions.
@kogorek1
@kogorek1 5 жыл бұрын
Better explanation than professors at the university
@anmaral-sharif1381
@anmaral-sharif1381 6 жыл бұрын
"Like" before watch. 👍
@Hunar1997
@Hunar1997 6 жыл бұрын
That was awesome 😊 and a new idea for explaning it, before watching this video best explanaition for me was a video by (The coding train) but now this video is the best
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Wow, thanks!
@NBsTube
@NBsTube 5 жыл бұрын
you are a fucking genius, this explanation of the mandelbrot set is so didactic and useful, I would love if you can at some point do a similar explanation but about the mandelbulb, of some 3D fractal, I wrapped my mind around how mandelbrot works (and I still try to understand how the julia set works, I've seen a couple of good videos about how mandelbrot, julia set, and fibonacci correlates to the other in the channel 3blue1brown) but the moment you go three dimensional my mind explodes, my dream of all times is to really understand how to generate 3D fractals with raymarching, but not as many other videos do where they just show the code, but UNDERSTANDING it, thats the part that excites me. Keep doing these amazing videos, I found you last week and I love your shader tutorials, they are both good for newbies and for intermediate shader devs and computer scientist in general, I thought I would never find a shader veteran that also loves to didactically explain his knowledge.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
Wow... thanks for your nice words! The 3d fractals are on the agenda. You raise an interesting point about not just blindly copying something, but actually understanding it. Videos ideas often have to bounce through my head for a few months before I know them well enough to be able to explain them well, and not just code them.
@NBsTube
@NBsTube 5 жыл бұрын
@@TheArtofCodeIsCool yeah definitely, I like how you introduce stuff, concept by concept, you don't go for the big fish first, you introduce concepts and knowledge in layers, each one more complex and built around the previous one, that's the best way to learn, otherwise the overdose of new information usually frustrates people.
@jhonkitri
@jhonkitri 2 жыл бұрын
Hello sir, Can you make a video tutorial for working on the Mandelbrot Set Fractal Accelerator project using the quartus and nios ii applications based on the book EMBEDDED SOPC DESIGN WITH NIOS II PROCESSOR AND VHDL EXAMPLE (Pong P. Chu Cleveland State University) on page 637?
@THE_ONLY_GOD
@THE_ONLY_GOD Жыл бұрын
How to put a rotating raymarching object into every "orbit trap" of that fractal in Shadertoy?
@THE_ONLY_GOD
@THE_ONLY_GOD Жыл бұрын
Would be interesting to have a particle "drum" sent from origin to bounce off the walls and every bounce make a sound...curious if that would make fibonacci sound sequences or...?
@frankconley7630
@frankconley7630 Жыл бұрын
Using the dancer example, when you zoom in 10 or 100 times what are you looking at. I'm flummoxed. I cant learn what the shapes are when i watch Mandelbrot zoom videos. What determines the shapes and colors around the focal point? Please respond. Anyone.
@TheArtofCodeIsCool
@TheArtofCodeIsCool Жыл бұрын
You are looking at the scores of the dancers that started at the exact locations you zoomed into. The colors are just the score, mapped to a color. You are free to turn scores into colors anyway you like. Here, I use the score to look up a color from a texture with color gradients.
Value Noise Explained!
16:21
The Art of Code
Рет қаралды 33 М.
Fractals are typically not self-similar
21:36
3Blue1Brown
Рет қаралды 3,9 МЛН
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 1,4 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 6 МЛН
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 13 МЛН
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 101 МЛН
Gravitational force
33:59
Sole cc
Рет қаралды 2
Hidden Structures of the Mandelbrot and Julia Sets
18:24
Damnimp
Рет қаралды 321 М.
This equation will change how you see the world (the logistic map)
18:39
Coding Challenge 168: MandelBulb 3D Fractal
28:02
The Coding Train
Рет қаралды 365 М.
Möller Trumbore Ray Triangle Intersection Explained
17:18
enigma tutorials
Рет қаралды 7 М.
Sounds of the Mandelbrot Set
9:32
CodeParade
Рет қаралды 2,7 МЛН
Times Tables, Mandelbrot and the Heart of Mathematics
13:37
Mathologer
Рет қаралды 2,7 МЛН
What is the Ultraviolet Catastrophe?
40:29
Physics Explained
Рет қаралды 2 МЛН
Euler Squares - Numberphile
15:27
Numberphile
Рет қаралды 527 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 21 МЛН
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 2,1 МЛН
Carregando telefone com carregador cortado
1:01
Andcarli
Рет қаралды 2,3 МЛН
Задача APPLE сделать iPHONE НЕРЕМОНТОПРИГОДНЫМ
0:57
Main filter..
0:15
CikoYt
Рет қаралды 988 М.