ok, i am using free pascal and i am trying to make a small circle orbit around a point, this is my code:
Program Graphics;
Uses Crt, Graph;
Var GrDriver, GrMode, x: Integer;
{These vars are needed to initialize the graphics}
ch : char;
Begin
ch := #1;
ClrScr;
GrDriver := 0;
GrMode := 0;
InitGraph (GrDriver, GrMode, '');
{InitGraph is used to initialize the graphics mode}
If GraphResult <> 0 Then
{If an error occurs, print an error message}
Begin
WriteLn ('Couldn''t initialize graphics!');
Halt (0); {This will halt the program}
End;
while not false do
begin
for x:= 1 to 60 do
clrscr;
circle(150 + round(sin(x/10)*100),150 + round(cos(x/10)*100),4);
wait(1000);
end;
Repeat
ch := ReadKey;
Until ch = #27;
{Repeat until ESC (chr value 27) is pressed}
CloseGraph;
{CloseGraph is used to clear the graph-memory
once the program is done.}
End.
i need the circle to rotate slow enough that i can see it but if i add any delay then it doesnt move at all. i tried wait but that doesnt exist apparently