Sir R. M8gic1an
2009-09-11 22:49:01
Well, in the function Planning thread, cazax suggested this:
Smart colors is an AI object finding system that moves the colors around in an array, giving priority to those that it finds most often. It is also very fast because it usually searches without tol and is able to find it, if not, it then uses tol and takes into account which color it found.
It also checks that the color is not too common in the MS.
Or should we use a 'normal' finder, that can take any cts, etc?
if so, we should perhaps use TAutoColorInfo, from SRL.
Your thoughts?
~RM
Type
TMSObj = Record
TP : TPoint;
Colors : TIntegerArray;
UpTexts : TStringArray;
W, H : Integer; //For SplitTPAEx or TPAtoATPAEx
End;
And this reminded me of something. SmartColors.Smart colors is an AI object finding system that moves the colors around in an array, giving priority to those that it finds most often. It is also very fast because it usually searches without tol and is able to find it, if not, it then uses tol and takes into account which color it found.
It also checks that the color is not too common in the MS.
Or should we use a 'normal' finder, that can take any cts, etc?
if so, we should perhaps use TAutoColorInfo, from SRL.
{ type TAutoColorInfo;
Description: Set of information that can be used in some functions. }
type
TAutoColorInfo = record
Name: string;
Color: Integer;
ColorArray: TIntegerArray;
MinCount: Integer;
MaxCount: Integer;
MaxDist: Integer;
MaxDistCenter: Integer;
UpText: string;
UpTextMulti: TStringArray;
HueMod, SatMod: Extended;
LumTol: Integer;
MinR, MaxR, MinG, MaxG, MinB, MaxB: Integer;
MinX, MaxX, MinY, MaxY, MinZ, MaxZ: Extended;
end;
Your thoughts?
~RM