home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Internet 2001 November
/
MICD2001_11_NR1.iso
/
Www
/
Pasman
/
programy
/
drg.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2001-10-05
|
411b
|
22 lines
uses graph,crt;
var
vga,vgahi: integer;
A: real;
w,w2,w3,w4: real;
t: real;
begin
initgraph(vga,vgahi,'c:\bp\bgi');
t:=0;
A:=50;
w:=2*pi*3;
w2:=2*pi*2;
w3:=2*pi*4;
w4:=2*pi*2;
setfillstyle(1,0);
repeat
putpixel(320+round(A*sin(w*t))+round(A*sin(w2*t)),
240+round(A*sin(w3*t))+round(A*sin(w4*t)),15);
delay(1);
t:=t+0.001;
until keypressed;
end.