rj
2013-03-13 21:26:06
So I want the procedue to search for shifting pixels in the TPA area, how do I do that I don't have the slightest clue, here is what I got:
Procedure GetColorsMoving(Color,tol,shift: Integer; hue,sat: Extended);
Var
tmpCTS,i, L,Counter: Integer;
ObjTPA: TPointArray;
ObjATPA: T2DPointArray;
X,Y,DMCount,Moves: Integer;
Begin
Moves:=0;
DMCount:=0;
tmpCTS := GetToleranceSpeed;
SetColorToleranceSpeed(2);
SetToleranceSpeed2Modifiers(0.06, 0.41);
FindColorsTolerance(ObjTPA, 3172740, MSX1, MSY1, MSX2, MSY2, 4);
SplitTPAWrap(ObjTPA, 10, ObjATPA);
SortATPAFromFirstPoint(ObjATPA, Point(MSCX,MSCY));
SetColorToleranceSpeed(tmpCTS);
SetToleranceSpeed2Modifiers(0.02, 0.02);
DMCount:=RandomRange(3,5);
L := High(ObjATPA)
MarkTime(Counter);
For i := 0 To L Do
Begin
MiddleTPAEx(ObjATPA[i], X, Y);
End;
End;