Color c = new Color (redvalue, greenvalue, bluevalue); red/green/bluevalue can be specified as integers in 0 ... 255 or floating point numbers from 0 to 1. |
c is generated as a Color in RGB format. |
graphicsobject.setColor(c); // sets current color in graphicsobject which is used for all subsequent operations |
There are particular Color instances already defined such as
|