Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Color Detection?
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
isaiahk9




PostPosted: Fri Apr 17, 2009 12:20 pm   Post subject: Color Detection?

Hey, for my final game project, I'm making a platforming fighter and was wondering about my maps/arenas. The easiest way to make maps is with color detection. Can I use color detection in Netbeans IDE 6.5? Or if anybody has any other ideas that would serve the same purpose, ty.
Sponsor
Sponsor
Sponsor
sponsor
matt271




PostPosted: Fri Apr 17, 2009 4:03 pm   Post subject: Re: Color Detection?

any colour chooser, even ms paint, will let u pick any colour off the whole range of colours. it will then give u numbers for red green and blue. in java u can say Color colour = new Color(red, green, blue); where red green and blue are numbers between 0 and 255

paint shop pro will let u take a colour off anywhere on the screen
[Gandalf]




PostPosted: Fri Apr 17, 2009 4:15 pm   Post subject: RE:Color Detection?

Your IDE doesn't matter, it's which version of the Java SDK you're using that makes the difference.

Look into the Robots class for whatdotcolour-like colour detection. The main difference is that the Robots class allows you to get the colour from anywhere on the screen.
isaiahk9




PostPosted: Fri Apr 17, 2009 6:13 pm   Post subject: RE:Color Detection?

@matt271 : ty, but I already know how paint can pick out colors. I was just wondering if there was a line of code similar to whatdotcolor detection. Oh well, Gandalf solved my problem.

@Gandalf : ty, Robots class is the answer.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: