kevin
kevin

Reputation: 1

graphics.setcolor - what parameter?

im using the Graphics.setColor() to set the color of an arc im drawing. what im tring to figure out is what color format do i stick into the brackets. its not RGB because i cant use letters

Upvotes: 0

Views: 3144

Answers (1)

Oded
Oded

Reputation: 499402

You need to pass in a Color object.

The documentation is quite clear - didn't you check it?


You can do the following:

g.setColor(new Color(255, 255, 0);

Where g is an object of type Graphics.

Upvotes: 1

Related Questions