When you plotted perlin noise on the graph with the ball moving left and right smoothly. It reminded me of what happens if you apply "random()" to acceleration. We essentially get smooth random movement. I wonder if that can count as a variation to perlin noise and if it would have too won an oscar lol.
Hello, when I try to run my script it says that map is not defined. code: var y = map(noise(100),0,1,0,height); I have loaded p5.js in my html file. btw: you are my favorite teacher ever!
map transforms a value from a given range (0 to 1 in the case of noise()) into a value from another range. for example, if we choose a random number between 0 and 10 and get a 5, and map that number between 50 and 100, it will become 75. this is because 5 is halfway between 0 and 10, and 75 is halfway between 50 and 100.
Just to clear Dan's answer, and to help other p5.js newbies (like me), "p5 library loaded" actually means having the setup() and draw() function included (even empty) in a js file loaded in the page in question.
For anyone looking for how to run P5.js on your local machine like him: th-cam.com/video/UCHzlUiDD10/w-d-xo.html Introduction to P5.js: th-cam.com/video/8j0UDiN7my4/w-d-xo.html
so the value of noise on a particular xoff is almost the same at each frame....but what we do to get the smooth randomness is getting the noise value of a xoff over and over again but we change the xoff or add the xoff for each frame?
Came here wanting to learn how to write my own Perlin Noise code in Java... kept watching and listening purely for your amazing energy. Much love :D
I really like the attitude in these tutorials, really makes me even more excited about programming.
I bought The nature of code book just because I like you so much!! ❤️
When you plotted perlin noise on the graph with the ball moving left and right smoothly. It reminded me of what happens if you apply "random()" to acceleration. We essentially get smooth random movement. I wonder if that can count as a variation to perlin noise and if it would have too won an oscar lol.
you're crazy, a genious. in every video of yours I believe that again. thank you for everything
You are awesome. I wish I had that kind of energy in day to day life. Life would be so incredible daily.
best teacher ever! Thank you very much.
thanks for watching!
It would be great if you can explain the map() function and the values in there, keep up the great work !
THIS WAS SO COOL 😭 ❤️.
Thanks for watching!
That was beautiful. Bravo sir!
Thanks!
Thanks for the support!
Wow that's really a nice way to explain it
great explanation sensei
merry christmas and happy new year
Hello, when I try to run my script it says that map is not defined.
code: var y = map(noise(100),0,1,0,height);
I have loaded p5.js in my html file.
btw: you are my favorite teacher ever!
nvm I ran map() outside of a function i'm a dumbass XD
No worries, glad you worked it out!
8:54 my mouse on the X button
8:55 "Don't go!!" me replying OK!! with a big laugh
same haha
Cool
what was the reason of applying map( ) there, i didnt get it. :p
map transforms a value from a given range (0 to 1 in the case of noise()) into a value from another range. for example, if we choose a random number between 0 and 10 and get a 5, and map that number between 50 and 100, it will become 75. this is because 5 is halfway between 0 and 10, and 75 is halfway between 50 and 100.
Every time I try to call the random function in console, I just get an undefined error.
+Sounds From The Attic you have to be on a page that has the p5 library loaded.
Just to clear Dan's answer, and to help other p5.js newbies (like me), "p5 library loaded" actually means having the setup() and draw() function included (even empty) in a js file loaded in the page in question.
Hi, I cannot find the code in the link u attached to this video.
Ack, I'm not sure what happened to it. Would you find filing an issue here as a reminder? github.com/CodingTrain/website/issues
this is so beautiful so amazing so awesome dbvehebfhesche im losing it
these guys are called TEACHERS not the one in my school.....
Excellent exposition of x-position 🙂
For anyone looking for how to run P5.js on your local machine like him:
th-cam.com/video/UCHzlUiDD10/w-d-xo.html
Introduction to P5.js:
th-cam.com/video/8j0UDiN7my4/w-d-xo.html
THANK U SO MUCH !!!
Your videos are life savers!
Nice intro! Guys, loop starting from 8:49 plz! XDD
I mean exactly 8:55 to 9:00
As always, very interesting things you bring about.
so the value of noise on a particular xoff is almost the same at each frame....but what we do to get the smooth randomness is getting the noise value of a xoff over and over again but we change the xoff or add the xoff for each frame?
Me gusta
7:30 ,,, that number isn't changing, why ? because that number is the same all the time!! ))))
Thank you for teaching the Nature of code and the excellent explanations 😊
why I can't use random() function in console? I try in html hardcode and it works, but dont works in console?
interesting. Thanks so much for great tutorial
Great teacher. Thanks
Awesome teaching, thank You so much!
Hi, I enjoy your videos and appreciate what you teach us buy why are you so hyper ? (serious question)
d
Its been up over a year and a half and it still has no dislikes, shows how good this guy is!