Slick Forums

Discuss the Slick 2D Library
It is currently Tue May 21, 2013 5:57 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Feb 06, 2010 4:35 pm 
Offline

Joined: Sat Feb 06, 2010 4:29 pm
Posts: 40
Hi,

Graphics g;

I want
g.resetColor();
just as
g.resetFont();

or is there another way to get back to the default Color?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 08, 2010 3:26 pm 
Offline
Site Admin

Joined: Mon Dec 08, 2008 2:17 pm
Posts: 140
The default color is White. I always put the color back the way it was before like:

Code:
Color origColor = g.getColor();
g.setColor(Color.Blue);
... draw some text

g.setColor(origColor);


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 08, 2010 5:14 pm 
Offline

Joined: Sat Feb 06, 2010 4:29 pm
Posts: 40
Thanks.
useing getColor() sounds good.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group