How would you set the color of a graphics context called g to cyan?

A) g.setColor(Color.cyan);
B) g.setCurrentColor(cyan);
C) g.setColor("Color.cyan");
D) g.setColor("cyan’);
E) g.setColor(new Color(cyan));

Showing Answers 1 - 3 of 3 Answers

chaitanya

  • Jun 25th, 2016
 

C) g.setColor("Color.cyan");

  Was this answer useful?  Yes

ramseena

  • Oct 31st, 2020
 

A) g.setColor(Color.cyan);

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions