Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your task is to write a program that will display Beep Boopers to the Processing canvas. Moreover, you will write your program such that it
Your task is to write a program that will display Beep Boopers to the Processing canvas. Moreover, you
will write your program such that it is very easy to change Beep Boopers color. Beep Boopers will have a
primary colour which we will shorten to pc in grayscale, and a secondary colour sc in RGB Your code
should be split up into several smaller functions as outlined below.. Note that each of these functions will
involve one or more parameters; review the textbook carefully andor ask your TA to make sure you use
these effectively!
drawheadpc draws the robot monkeys head, two ears, and two eyes. His eyes should be black
while the rest of his head is coloured in grayscale given by the function parameter pc
drawbodypc draws the robot monkeys body. Also draw three different coloured buttons your
choice of colours on his shell. The rest of the body should be coloured in grayscale given by the
function parameter pc
drawarmspcscscsc draws the robot monkeys arms with fists you dont need to draw every
finger just a ball representing a balled up first will do The arms should be coloured in grayscale
given by function parameter pc while the fists are coloured in RGB given by the function parameters
scscsc
drawlegspcscscsc draws the robot monkeys legs and feet you dont need to draw every toe just a ball representing the feet works The legs should be coloured in grayscale given by
the function parameter pc while the feet are coloured in RGB given by the function parameters
scscsc
drawbeepbooperspcscscsc makes a function call to all four of the functions above in order
to draw all parts of Beep Boopers. This functions parameters should be passed on as arguments to
the other four functions
The very last line of your program should be a function call to drawbeepboopers where the colours
to use to draw Beep Boopers body and handsfeet are passed in as arguments. For example, a call of
drawbeepboopers should produce the colours seen in the sample here, whereas a
call of drawbeepboopers would produce a Beep Boopers whose body and limbs are entirely
black. This should be the ONLY place in your code where you specify actual numbers for the primary and
secondary colours of Beep Boopers. You may wish to include code to adjust the size and background
color of the Processing canvas at this point as well.
You are free to add more details to the drawing if you like, so long as you are still meeting the criteria
outlined above.
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