This video covers the boolean variables in p5.js. I first look at mousePressed, and also discuss creating your own boolean variable to track the state of a button. Code: https://thecodingtrain.com/tracks/cod...
🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...
🎥 Previous video: • 3.3: Else and Else if, AND and OR - p...
🎥 Next video: • 4.1: while and for Loops - p5.js tuto...
🎥 All videos: • Start learning here!
Timestamps:
0:00 Introduction
0:48 Boolean Variables -- TRUE or FALSE
3:00 Distinction Between Mouse is Clicked and Mouse is Pressed
8:00 Assigning States to the Program
11:50 mousePressed()
13:35 Toggling the State
14:36 The NOT operator
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord: / discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org
📄 Code of Conduct: https://github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...
#boolean #variables #p5js #javascript
In questa pagina del sito puoi guardare il video online 3.4: Boolean Variables - p5.js Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato The Coding Train 10 settembre 2015, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 146,544 volte e gli è piaciuto 2.8 mille spettatori. Buona visione!