2
answers
0
watching
210
views
24 Oct 2018

22. What expression goes in the blank so this program draws a red ball when the mouse is pressed and a black ball otherwise? Check all that apply. void draw() { background (255); drawBall (mousex, mousey, A. mousePressed == true B. mousePressed C. !mousePressed D. mousePressed == false void drawBall (int x, int y, boolean red) { if (red) fill (255, 0, 0); else { fill(0); ellipse (x, y, 40, 40);

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Hubert Koch
Hubert KochLv2
25 Oct 2018
Already have an account? Log in
Start filling in the gaps now
Log in