Slick Forums

Discuss the Slick 2D Library
It is currently Fri Aug 23, 2019 3:11 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: RFE: Set image color
PostPosted: Tue Feb 01, 2011 12:59 am 
Offline
Game Developer
User avatar

Joined: Tue Nov 21, 2006 4:46 am
Posts: 620
Location: Iceland
I really use the following method a lot, and it's sibling methods:
Code:
g.drawImage(image, x, y, color)


What I like to be able to do is specify the image color for multiple images without specifying it in the parameters of the draw method, e.g.:

Code:
g.setImageColor(Color.blue);
g.drawImage(img, x, y);
img2.drawCentered(x2, y2);
.. etc
g.setImageColor(Color.white); // restore default


The reason I ask for this is because not all image drawing methods contain that color parameter, and I think it would be a nice easy feature to add that helps a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2011 2:31 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Added in SVN.

Kev


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Group