2

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.

jgr208
  • 2,896
  • 9
  • 36
  • 64
Calico
  • 57
  • 5

1 Answers1

2

You could do

gObject.setColor(Color.decode("0x054628")); // turtle green
Reimeus
  • 158,255
  • 15
  • 216
  • 276