Mega Code Archive
Bresenhams daire algoritması
var
Form1: TForm1;
x,y,yaricap:integer;
x_mer,y_mer:integer;//x ve y koordinatları için
procedure Tform1.daire(x_mer, y_mer,y:integer);
var p,x:integer;
begin
x:=0;
y:=yaricap;
p:=3-2*yaricap;
while x=0 do // for yaricap:=StrToInt(Edit3.Text) downto 0 do
begin
daire(x_mer,y_mer,yaricap);
yaricap:=yaricap-1;
end;
end;
end.