Answered step by step
Verified Expert Solution
Link Copied!

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 and/or ask your TA to make sure you use
these effectively!
draw_head(pc) 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.
draw_body(pc) 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.
draw_arms(pc,sc1,sc2,sc3) 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
(sc1,sc2,sc3)
draw_legs(pc,sc1,sc2,sc3) 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
(sc1,sc2,sc3).
draw_beep_boopers(pc,sc1,sc2,sc3) 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 draw_beep_boopers(), where the colours
to use to draw Beep Boopers body and hands/feet are passed in as arguments. For example, a call of
draw_beep_boopers(200,200,160,0) should produce the colours seen in the sample here, whereas a
call of draw_beep_boopers(0,0,0,0) 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Why is a pass-through security a path-dependent cash flow security?

Answered: 1 week ago

Question

define what is meant by the term human resource management

Answered: 1 week ago