Project #2 Form Generator

Description

My sketches

I want to focus more on the new concepts we learned, so I decide to chose a simple graph to do all the work. Thus, I draw a sketch of a slime. Then I turned my sketches into codes. At first I want the size of the slime randomly changing, but it was hard to control. So I used "random" on color(both slime and the background, slime's color changes every time someone runs this frame, background color changes when someone clicks the canvas), and "mousePress" for changing size. The interacting process became more clear and neat.

My discovery

I have had some basic understanding of "random", "mousePress", "mouseRelease", and how to define a variable after finishing this homework. But I think there are still a lot of details I need to study. Like, how to make my object stay at the center of the canvas instead of trying numbers to locate it everytime.