Processing 4.0, not being able to move my drawing

Viewed 44

The mouse should be roughly centered on the person's face. When the mouse is moved, the person moves along with it. You should use the mouseX and mouseY variables to determine where the mouse is. Also, you’ll need to use the setup() and draw() function for this one.

The person must have each of the following: a face (ellipse) eyes (ellipses) mouth (triangle) torso / legs (custom shape) arms (rect) hands (rect, triangle, ellipse, or custom) feet (rect, triangle, ellipse, or custom) hair (lines) you will write a processing program that generates a drawing of person. This person will “follow” wherever the mouse moves along the screen. Below is an example animation of this happening in action:

This is what its supposed to look like this is my code right now

not able to move the image with my mouse, someone help me out.

0 Answers
Related