Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
3.4: Boolean Variables - p5.js Tutorial
Play lesson

Start learning here! - 3.4: Boolean Variables - p5.js Tutorial

4.0 (0)
9 learners

What you'll learn

This course includes

  • 6.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

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/code-programming-with-p5-js/code/3-conditionals/4-boolean πŸ•ΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/yzBpV0CI πŸŽ₯ Previous video: https://youtu.be/r2S7j54I68c?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA πŸŽ₯ Next video: https://youtu.be/cnRD9o6odjk?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA 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/passenger-showcase-guide 🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box πŸ’‘ GitHub: https://github.com/CodingTrain πŸ’¬ Discord: https://discord.gg/hPuGy2g πŸ’– Membership: http://youtube.com/thecodingtrain/join πŸ›’ Store: https://standard.tv/codingtrain πŸ–‹οΈ Twitter: https://twitter.com/thecodingtrain πŸ“Έ Instagram: https://www.instagram.com/the.coding.train/ πŸŽ₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH πŸŽ₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA πŸ”— 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-of-Conduct This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new #boolean #variables #p5js #javascript

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

FAQs

Course Hive
Download CourseHive
Keep learning anywhere