0

How do i get color brown in java applet since it's unavailable among selected colors?

Java Applet

8th Mar 2019, 10:07 AM
Daryll Culas
Daryll Culas - avatar
2 odpowiedzi
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*
8th Mar 2019, 10:49 AM
Daryll Culas
Daryll Culas - avatar
+ 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); }
8th Mar 2019, 10:27 AM
Prokopios Poulimenos
Prokopios Poulimenos - avatar