uses GraphABC; const n=10; var x, y: array[1..n] of integer; a,b : integer; begin LockDrawing; SetWindowSize(600,400); SetBrushColor(clred); for var i:= 1 to n do begin x[i] := Random(600); y[i] := Random(400); circle(x[i],y[i],20); end; while 1=1 do begin sleep(100); ClearWindow; for var i:= 1 to n do begin a:= Random(11) - 5; b:= Random(11) - 5; x[i]:= x[i] + a; y[i]:= y[i] + b; circle(x[i],y[i],20); end; Redraw; end; end.
var x, y: array[1..n] of integer; a,b : integer; begin LockDrawing; SetWindowSize(600,400); SetBrushColor(clgreen); for var i:= 1 to n do begin x[i] := Random(600); y[i] := Random(400); circle(x[i],y[i],20); end; while 1=1 do begin sleep(100); ClearWindow; for var i:= 1 to n do begin a:= Random(8) + 5; b:= Random(11) - 5; x[i]:= x[i] + a; y[i]:= y[i] + b; circle(x[i],y[i],20); end; Redraw; end; end.
uses GraphABC; const n=10; var x, y: array[1..n] of integer; a,b : integer; begin LockDrawing; SetWindowSize(600,400); SetBrushColor(clRandom); for var i:= 1 to n do begin x[i] := Random(600); y[i] := Random(400); rectangle(x[i],y[i],x[i]+50, y[i]+ 50); end; while 1=1 do begin sleep(100); ClearWindow; for var i:= 1 to n do begin a:= Random(11) - 5; b:= Random(11)- 5; x[i]:= x[i] + a; y[i]:= y[i] + b; rectangle(x[i],y[i],x[i]+50, y[i]+ 50); SetBrushColor(clRandom); end; Redraw; end; end.
uses GraphABC; const n=10; var x, y: array[1..n] of integer; a,b : integer; begin LockDrawing; SetWindowSize(600,400); SetBrushColor(clRandom); for var i:= 1 to n do begin x[i] := Random(600); y[i] := Random(400); circle(x[i],y[i],2); end; while 1=1 do begin for var i:= 1 to n do begin a:= Random(11) - 5; b:= Random(11) - 5; x[i]:= x[i] + a; y[i]:= y[i] + b; circle(x[i],y[i],2); SetBrushColor(clRandom); end; ReDraw; end; end.