qbasicking
Programmer
private void drawbulb(int dummy){
AOval cirque = new AOval(75,200,BULB_SIZE,BULB_SIZE);
if (dummy > 32){
cirque.setColor(Color.red);}
else {cirque.setColor(Color.blue);}
cirque.setToFill();
cirque.place(view);}
Why doesn't this change from red to blue when dummy is below 32? The object is drawn perfectly, except it doesn't change colour.
AOval cirque = new AOval(75,200,BULB_SIZE,BULB_SIZE);
if (dummy > 32){
cirque.setColor(Color.red);}
else {cirque.setColor(Color.blue);}
cirque.setToFill();
cirque.place(view);}
Why doesn't this change from red to blue when dummy is below 32? The object is drawn perfectly, except it doesn't change colour.