p5.js Coding Tutorial | Slime Molds (Physarum)

  Рет қаралды 5,912

Patt Vira

Patt Vira

Күн бұрын

Пікірлер: 32
@stefanvanraemdonck9054
@stefanvanraemdonck9054 10 ай бұрын
I love it. You are a very busy woman. One video every day. Thanks a lot Stefan
@pattvira
@pattvira 10 ай бұрын
Haha busy but fun! Thanks for watching.
@ttgg8922
@ttgg8922 10 ай бұрын
And very persevering 👍
@artflychris
@artflychris 10 ай бұрын
Thanks so much for such a clear explanation. I've loved the idea and look of slime molds for ages, but couldn't figure out the code so gave up. You've cleared it all up for me. Brilliant, brilliant, brilliant. 🙏🙏🙏
@pattvira
@pattvira 10 ай бұрын
So happy to hear! Give it a try and let me know how your sketch turns out!
@foxtrotsFoxy
@foxtrotsFoxy 4 ай бұрын
This is beautiful! the shapes formed looks like some voronoi cells
@danielquintana1950
@danielquintana1950 Ай бұрын
This project was so fun. I did everything as vectors and was able to make it work. Thank you for such a great explanation!
@-slt
@-slt 9 ай бұрын
Beautiful especially when they suddenly came to life with 4000 molds. Tried this before after watching "Coding adventure" video but your video is a complete tutorial. Thanks 🙏
@pattvira
@pattvira 9 ай бұрын
Thanks! Glad you liked it.
@StevesMakerspace
@StevesMakerspace 8 ай бұрын
Hard to believe I haven't found your channel until now, considering what I've been doing. Looking forward to checking out many of your videos! Nice job!
@pattvira
@pattvira 8 ай бұрын
Thanks Steve! Nice e-meeting you here :)
@ivanlukomskiy
@ivanlukomskiy 10 ай бұрын
Great quality content! Love the calm and clear explanations; the algorithm itself is pretty cool
@pattvira
@pattvira 10 ай бұрын
Glad you enjoy it! Thanks for watching.
@tntfreeze
@tntfreeze 10 ай бұрын
Another good video Patt 👍 I found it very interesting at 27.48 with what happened with the sensorDist variable. Lots of possibilities with changing that variable alone. Nice
@pattvira
@pattvira 10 ай бұрын
Yes, lots of possibilities! 😊
@CredsLife
@CredsLife 6 ай бұрын
Great job!! Keep up the fantastic work:)
@Xeronimo74
@Xeronimo74 4 ай бұрын
very cool, thanks
@kanaria449
@kanaria449 10 ай бұрын
really cool video!! on the topic of molds and fungi... have you thought about making a mushroom in p5js? maybe Amanita muscaria in 2d? i think that could be fun :)
@pattvira
@pattvira 10 ай бұрын
Hmmm interesting. A fungi series 🍄 I'll keep that in mind!
@johnu6876
@johnu6876 10 ай бұрын
Hi Patt. Love the video. Your coolest effect yet. I think when (f < l && f < r) there's supposed to be a 50% chance to go left or right. The code has a 50% chance to go right but doesn't do anything the other 50% of the time. I changed: if (random(1) < 0.5) { this.heading += this.rotAngle; } to : if (random(1) < 0.5) { this.heading += this.rotAngle; } else { this.heading += -this.rotAngle; } It didn't really change the way things look. Did I miss something or does it just not have that big an impact?
@pattvira
@pattvira 10 ай бұрын
Thanks again for the catch! I have updated the code to include the else part. I am also surprised it didn't make a huge impact. Glad you enjoyed this one. One of my favorites also 😊
@chenxin4741
@chenxin4741 2 ай бұрын
One question. At 21:21, why the sensing data is 220 220 220 instead of 255, 0, 0, because you paint the sensorPos as red circles on screen.
@chenxin4741
@chenxin4741 2 ай бұрын
Ah, I see. Because backgroud is called before update in each frame.
@gordanzadro5765
@gordanzadro5765 8 ай бұрын
Thanx Patt , realy like your way for tutorial!! I wonder is there a way to make it static, so when the shape is done to stop moving. 🙏🙋
@gordanzadro5765
@gordanzadro5765 8 ай бұрын
Dear Patt, You probably havent saw my question. Thanx in advance!
@pattvira
@pattvira 8 ай бұрын
I updated the sketch such that when you press 's', molds stop moving! You can decide when the shape is "done"! Hope this helps.
@gordanzadro5765
@gordanzadro5765 8 ай бұрын
@@pattvira thank you dear Patt 🙏🙋
@Techne89
@Techne89 9 ай бұрын
Hej just read your newsletter, cool 💡 ideas for future projects / content . With involvement off physical computing . Some combos between ardinio and processing or something other ways…🎉
@pattvira
@pattvira 9 ай бұрын
Yup, possibly in the future!
@bartvenken7138
@bartvenken7138 7 ай бұрын
THe 'trail' the white pixels leave behind (and which vanishes) is it purely a result of the animation?
@thorzweegers7616
@thorzweegers7616 4 ай бұрын
Yes. Setting the background colour in de draw-function usually 'clears the screen'. But now she gave the background an alpha-value, which means it doesn't fully 'cover' the pixels from the previous frames. Not only does this give a cool trail, but since all the calculations are based on the pixels on screen (and not set in a separate array) this instantly also effects the resulting motions.
@bartvenken7138
@bartvenken7138 4 ай бұрын
@@thorzweegers7616 Thanks.
p5.js Coding Tutorial | Gradient Spiral 🌀
20:57
Patt Vira
Рет қаралды 597
Slime Mold Simulation. Experiments.
12:32
Simulife Hub
Рет қаралды 16 М.
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
Coding Adventure: Ant and Slime Simulations
17:54
Sebastian Lague
Рет қаралды 1,9 МЛН
Coding Challenge 166: ASCII Text Images
22:42
The Coding Train
Рет қаралды 1,1 МЛН
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 1 МЛН
Coding Challenge #86: Cube Wave by Bees and Bombs
30:09
The Coding Train
Рет қаралды 630 М.
Household Objects (But Extremely Close)
8:09
Posy
Рет қаралды 247 М.
p5.js Coding Tutorial | Recursive Pattern (Recursion)
14:47
Patt Vira
Рет қаралды 1 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 1 МЛН
p5.js Coding Tutorial | Introduction to matter.js 🔴 🟪
38:12
Teaching myself C so I can build a particle simulation
11:52
Gradience
Рет қаралды 327 М.
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.