Raskolnikov
2007-12-28 01:14:00
I never get whirlpools for some reason but I decided to do this. Please post your whirlpool colors.
Here it is.
Here it is.
function FindTehWhirlPool(Handle: boolean): boolean;
var x, y: integer;
WhirlPoints: TPointArray;
WhirlBox, OtherSkipBox: TBox;
begin
if FindColorsSpiralTolerance(x, y, WhirlPoints, {put color here please}, MSX1, MSY1, MSX2, MSY2, 4) then
begin
Result := True;
WhirlBox.x1 := Low(WhirlPoints.x);
WhirlBox.y1 := Low(WhirlPoints.y);
WhirlBox.x2 := High(WhirlPoints.x);
WhirlBox.y2 := High(WhirlPoints.y);
if Handle then
begin
repeat
Wait(1);
until(not(FindColorSkipBox(x, y, {color here}, WhirlBox.x1, WhirlBox.y1, WhirlBox.x2, WhirlBox.y2, OtherSkipBox));
end;
end;
end;