Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用ACM Graphics API编写一个简单的程序,并尝试使用该setColor()方法来设置海龟的颜色。我如何让它使用十六进制代码而不是Color.COLOR模式,因为它没有我的颜色。
setColor()
Color.COLOR
你可以做
gObject.setColor(Color.decode("0x054628")); // turtle green