Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+4 votes
asked in CSC211_Winter2018 by (1 point)

4 Answers

+4 votes

to set the color you need to use g.setColor(Color.(default colors usually in eclipse you want but it should be all in Caps)
If you want a specific color you would use RGB decimal format. To do this you would do g.setColor(newColor(R,G,B);

answered by (1 point)
+3 votes

You can also use paint to play around with colors and what values of Red Green and Blue give you the certain color that you want

answered by (1 point)
+3 votes

Color color = newColor(r,g,b);

answered by (1 point)
+3 votes

Try using this link to pick colors- you can use the mouse to find the color you would like and then it gives you the RGB code for that color.

https://www.google.com/search?q=color picker

answered by (1 point)
...