Coding Challenge #127: Brownian Tree Snowflake

preview_player
Показать описание


References:

Live Stream Archive:

Related Coding Challenges:

Timestamps:
0:00 Introduction
0:51 Brownian tree
1:46 Diffusion Limited Aggregation
2:18 Snowflakes have a hexagonal pattern
3:52 Create a Particle class
4:52 Add a random walk to the particle
6:19 Translate to the center
7:02 Make an array of snowflakes
8:00 Write a finished function
9:05 Write an intersects function
11:04 Add kaleidoscope
13:18 Edit code to add a vector
14:00 Constrain particle to a slice of the hexagon
15:52 Speed up the animation
16:43 Improve branching
17:33 Randomize the starting position
18:10 Conclusion and creative possibilities
19:05 Please consider supporting the Processing Foundation!

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

#browniantreesnowflake #snowflakegenerator #diffusionlimitedaggregation #processing
Рекомендации по теме
Комментарии
Автор

You really do good job 💪 I understand more than from tutorials, courses etc. After that I'm trying write my own code. There is just a practice ! You explain everything and that's help me a lot ❤️ Merry Christmas from Poland 🎅

muskel
Автор

I’ve been watching your videos for a few months now and learn something new in each one. Just wanted to say thanks for putting this resource out there and making it as accessible as it is. Season’s greetings! Thank you! (EDIT: space-filling curves could be a fun video ;) )

markfelixm
Автор

This is so over my head it’s unbelievable

ryanarmstrong
Автор

Render them to their own image buffers and use each one as a particle in a gravity + Brownian motion simulation. Result = realistic snowfall. Or if left as just arrays of particles, allowed them to have a speed, and made them able to break if going to fast when they hit the ground. Then let them pile up on the ground.

tentative_flora
Автор

I'm digging that coding trail sweater, haha. I always love these coding challenges; thanks again for all your hard work.

Randios
Автор

Dan, whoever made you that sweater is great :D

"never forget the this dot"

LoPhatKao
Автор

As always, Wonderfull! I worked with DLA (for scientific research) when I was an undergrad student. Never thought it would be so much fun!!! Thank you!

AllanMedeiros
Автор

I just saw your channel.. You are awesome. So much of things to learn.

NitishKumarPatra
Автор

Merry Christmas from Germany! Thank you for your tutorials and keep going!

rainerwaeger
Автор

Wow, can't skip these videos once started watching. Thank you so much for teaching us.❤

friendofcomputer
Автор

This is the coolest thing I've seen all week (yes, I know this video is 2+ months old)

jipfr
Автор

Merry Xmas! You made all of this look so simple ...every time I watch your video I learn something new! Thank you Dan!

sonik
Автор

To kill boredom
I do programing
I love to create things

paraschavan
Автор

I love your Videos!😱😱,
thanks to you I started my channel because you inspired me!

marcosimfeld
Автор

Thanks for the work you are putting into your channel, it is really great :)
Merry christmas from Germany :)

Entrxpy_
Автор

Thank you again for this interesting video and Merry Christmas from Toronto.

sidim.aourid
Автор

4:07 The "var_" naming kills me inside

avi
Автор

How about ripple animation with motion detection? Tap anywhere and a ripple motion is there BUT it can collide with an existing ripple too. Seems fun, not sure how much of it is possible though. :)

siddhantjain
Автор

u are legend man ...wish i can code like u...keep it

ahmedbadal
Автор

Idea for challenge: elastic collision of two objects: both one moving and one stationary, and both moving

ryonotrio