I am writing a simple program using the ACM Graphics API, and am trying to use the setColor()
method to set the color of a turtle. How do I have it use a hex code rather than a Color.COLOR
mode because that does not have my color.
Asked
Active
Viewed 271 times
2
1 Answers
2
You could do
gObject.setColor(Color.decode("0x054628")); // turtle green

Reimeus
- 158,255
- 15
- 216
- 276