FrostFyr
2010-06-27 03:11:37
is there a way to find a Changing color on a Single Colored block BG (in my case black or white) thats already built into scar? in my mind it would seem a useful function but i can't find any in the built-in functions list
i've made my own but i was just curious.
i've made my own but i was just curious.
function FindNotColor(var x, y: Integer; Color, xs, ys, xe, ye: Integer): Boolean;
var
xx, yy: Integer;
begin
for xx := xs to xe do
for yy := ys to ye do
if GetColor(xx, yy) <> Color then
begin
x := xx;
y := yy;
Result := True;
//If you want it to work faster then you need to
//put Exit; here or something :p
end;
end;