This video covers the setTimeout() function in JavaScript in the context of p5.js. setTimeout() allows you to execute a given function at a specific time (in milliseconds.)
https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setTimeout
All examples: https://github.com/shiffman/Video-Lesson-Materials
Contact: https://twitter.com/shiffman
Next video: https://youtu.be/CqDqHiamRHA
All JavaScript/p5.js videos: https://www.youtube.com/user/shiffman/playlists?shelf_id=14&view=50&sort=dd
Help us caption & translate this video!
http://amara.org/v/Qbtc/
Original source
9 responses to “9.1: JavaScript setTimeout() Function – p5.js Tutorial”
Correction: There's more to this. than that.
Dude. I want you to teach me every single topic that I have ever wanted to know.You're awesome.
so basically it's like Invoke()… in unity3d C#
You're amazing.
Hello Daniel, what type of programe did you use for editing the code? And its available for Windows?
Thanks
Thanks for the rainbow 🙂
Hey Daniel! That's a handy looking keyboard shortcut where you commented out a chunk of highlighted code. What is it?
EDIT: Nevermind, I worked it out. Ctrl + / for anyone else wondering.
This is really useful. Is there an equivalent function in Processing/Java? If so, do you have a video that uses it?
Nice Sweater!