Hi, im a total noob, been at this 2 days now.
Been trawling the forums, tuts and help sites but cant seem to find a good piece of code for identifying a colour within a boxed area.
I've got this far..
program FindMyColor;
var
x, y: integer;
begin
cleardebug;
Findcolor(x, y, 65535, 685, 124, 720, 111);
writeln(inttostr(x));
writeln(inttostr(y));
end.
But x and y are always returned as black (0), I know yellow(65535) is there.
preferably I would like a result returned as true/false so i can put a condition (if-then) to go into the next part of code. I'll bang my head against a wall later for that one if i have to though.
Super-duper ideally i'd love to be able to set out my box co-ordinates and capture any colours within so i can true/false them. (Month left till xmas though).
Anyone wanna dump some code on me feel free, a slap on the back of me head and a finger pointing the way would be gratefully recieved too.


Reply With Quote




