Create a new Open Processing sketch.
Now that you know how to make, color, and code shapes AND you know how to declare variables and use them in your code for the purpose of movement (animation), you should find this assignment pretty easy. It simply combines all your new knowledge and experience into one activity.
Create a rectangle and declare variables for all the arguments needed. For example: x, y, w, h, r, g, b. Name your variables so they make sense and have purpose and, give them a value that makes sense to the code you’ve written also.
Make your rectangle start off of the screen on the bottom left and move up to the top right as it gets slowly bigger in size. Also, make the color of the rectangle change as it moves up.
Name your sketch: AllVarChange
Go back to: Variables