3
answers
0
watching
159
views
5 Apr 2018

30. What expression goes in the blank so this program draws a red ball when the mouse is pressed and a black ball otherwise? void draw() { A. mouse Pressed == true background (255); B. mouse Pressed drawBall (mousex, mousey, C. both A and B work D. !mousePressed E mouse Pressed == false void drawBall(int x, int y, boolean red) { if (red) { fill(255,0,0); else { fili(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
Already have an account? Log in
Elin Hessel
Elin HesselLv2
6 Apr 2018
Already have an account? Log in
Start filling in the gaps now
Log in