i'm trying to determine what maze i'm in, in the MTA Maze thingy..
I'v tried DTM's, and currently trying out making a TBox of the maze, and counting the pixels inside, but i'm having trouble with that, its not accurate enough
, well, thats when it worked -.- i somehow deleted the function without saving it, so i made this here up out of memory, and i forgot exactly what it was 
SCAR Code:
function loadlengths(color, mlength: integer): integer;
var tpa, tpa2 : tpointarray; atpa, atpa2: t2dpointarray; i: integer; b: tbox;
begin
colortolerancespeed(3);
if not FindColorsTolerance(tpa, color, mmx1, mmy1, mmx2, mmy2, 7) then
exit;
atpa:= splittpa(tpa, 50);
for i:= 0 to high(atpa) do
begin
b:= gettpabounds(atpa[i]);
if not distance(b.x1, b.y1, b.x2, b.y2) <= 55 then exit;
begin
FindColorsTolerance(tpa2, color, b.x1, b.y1, b.x2, b.y2, 7);
debugtpa(tpa2, '');
end;
if length(tpa2) <= mlength then result:= length(tpa2);
end;
end;
honestly, i cant really word my problem correctly, or how i think it should sound, other than it always returns 0,
so, if you have any ideas, post pl0x
since im a nub
i also cant upload a pic of all the mazes, because it's to big