0
How do i get color brown in java applet since it's unavailable among selected colors?
Java Applet
2 Réponses
0
Thanks master for your good answer i really appreciate your response :) i hope i can ask you anything about java soon *kidding aside xD*
+ 1
Give us more info with an example what you mean.
Brown can be defined as :
Light brown (R,G,B)=(153,102,0)
Brown (R,G,B)=(102,51,0)
Dark brown (R,G,B)=(51,0,0)
For example :
public void paint(Graphics g) {
g.setColor(new Color(153,102,0));
g.fillRect(i, j, 25, 25);
}