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);
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);
22 Jun 2023
janmaymaymayLv1
12 Oct 2022
Already have an account? Log in
Elin HesselLv2
6 Apr 2018
Already have an account? Log in