To further practice using if, else, else if, please make the following happen.
- Create variables to represent red, green, and blue (r, g, b perhaps)
- Continuously draw the background based on those colors: background(r, g, b)
- If the mouse is on the right-hand side of the screen, increment the value of r; if it’s on the left-hand side decrement the value of r.
- Constrain the value r to be within 0 and 255.
Save sketch as elseif3
Go Back to: Conditionals 3: Else If Statements