Question
Can Someone draw this image using Processing? 1) Set the window size as 600 by 600; (2) Set global variables x and y as the
Can Someone draw this image using Processing?
1) Set the window size as 600 by 600;
(2) Set global variables x and y as the center of the head, and draw the rest of the body parts relative to the head position (x and y) - use one function named as drawStickFigure to draw the stick figure on the screen with position x and y; and draw the rest of the body parts using separate functions (methods) for drawing each part of the stick figure (e.g. head, body, arm);
(3) Set random color to the stick figure for each frame.
(4) Use variables, bouncing-ball example, and the trigonometry we discussed in class to create walking back-and-forth animation of the stick figure. (Hints: two legs movement can be animated using trigonometry; while walking back and forth across screen can be done by setting conditions for position x).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started