Learn programming 85: Using a background image, mousePressed and mouseReleased() from erase screen time Watch Video
Preview(s):
Gallery
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)
Description: While programming you have to pay a lot of attention to details. For example, there is a function called mousePressed() and there is a variable called mousePressed. The function gets called once when we click with the mouse. The variable has a value of true or false depending on if the mouse is currently clicked or not.nSince I want to make a circle grow while the mouse is clicked, I should keep checking the mousePressed variable inside the draw() function. Each time I notice the mouse is presse
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)