procedure TForm1.FormShow(Sender: TObject);
var
i : integer ;
t : TComponent ;
begin
for i := 1 to 10 do begin
t := FindComponent('SwirlEffect'+IntToStr(i));
if (t <> nil) then
TSwirlEffect(t).Center := PointF(20,20) ;
end;
end;
procedure TForm1.TrackBar1Change(Sender: TObject);
var
i : integer ;
t : TComponent ;
v : Single ;
begin
v := TrackBar1.Value ;
for i := 1 to 10 do begin
t := FindComponent('SwirlEffect'+IntToStr(i));
if (t <> nil) then
TSwirlEffect(t).SpiralStrength := v ;
end;
end;