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, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BenLi




PostPosted: Wed Jun 28, 2006 10:35 am   Post subject: color detection

I'm using whatdotcoor to detect color at a given point. However, it works when i use "black" for the color and not when i use "255" for the color? Anyone know how to solve this problem?
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Wed Jun 28, 2006 1:16 pm   Post subject: (No subject)

Well, that's the trouble (or, one trouble, of many) with Turing. You've got 256 colours to work with, but alot of them look very much the same (in fact, maybe they are the same). So, I suppose that whatdotcolour() goes through it's list of 256 colours and if the colour in question looks like a colour it recognizes, that colour is returned. And if black (7, I think) is close enough it will be returned and 255 is never even reached.
Slaivis




PostPosted: Wed Jun 28, 2006 2:29 pm   Post subject: (No subject)

Mazer wrote:
Well, that's the trouble (or, one trouble, of many) with Turing. You've got 256 colours to work with, but alot of them look very much the same (in fact, maybe they are the same). So, I suppose that whatdotcolour() goes through it's list of 256 colours and if the colour in question looks like a colour it recognizes, that colour is returned. And if black (7, I think) is close enough it will be returned and 255 is never even reached.


Yes, some of the colours are infact the same. I'm not sure if it will help, but here's a program I wrote to detect colours and show their Turing values:



ColourSeeker.t
 Description:
Written by Slaivis.

Download
 Filename:  ColourSeeker.t
 Filesize:  547 Bytes
 Downloaded:  171 Time(s)

BenLi




PostPosted: Wed Jun 28, 2006 3:55 pm   Post subject: (No subject)

lol thx, i wrote one of those too, they come in handy
Display posts from previous:   
   Index -> Programming, Turing -> Turing 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: