Wednesday, August 8, 2018

Snap! U2L3-Predicates



Circle 1: When the program starts clear the screen and bring the pen up so nothing is being drawn. The sprite always follows the mouse and while the left click is being held it will draw. Depending on the y position the color changes.

Circle 2: The even? block checks whether that number is even or not by using the modulus operator to see if there is no remainder when dividing by 2.

No comments:

Post a Comment