...
for I := 0
to 29
do
begin
for k := 0
to 26
do
begin
atoms[i,k] := TAtom.create;
atoms[i,k].x := I*35;
atoms[i,k].y := K*35;
atoms[i,k].changeatom(strtoint(edit1.text),strtoint(edit2.text));
with canvas
do
begin
brush.Color := atoms[i,k].color;
ellipse(atoms[i,k].x,atoms[i,k].y,atoms[i,k].x+35,atoms[i,k].y + 35);
end;
end;
end;
...
for i := 0
to 29
do
begin
for k := 0
to 26
do
begin
if atoms[i,k].Knownnuklid = true
then
begin
if atoms[i,k].stable = false
then
begin
atoms[i,k].randomdecay(0.2);
if atoms[i,k].stable = true
then stable := stable +1;
end;
end;
end;
...
for I := 0
to 29
do
begin
for k := 0
to 26
do
begin
with canvas
do
begin
brush.Color := atoms[i,k].color;
font.Color := atoms[i,k].Fcolor;
pen.Color :=
RGB(255,255,255);
ellipse(atoms[i,k].x,atoms[i,k].y,atoms[i,k].x+35,atoms[i,k].y + 35);
Font.Size := 8;
Textout(atoms[i,k].x+15,atoms[i,k].y+10,atoms[i,k].Kuerzel);
Font.Size := 6;
Textout(atoms[i,k].x+4,atoms[i,k].y+5,inttostr(atoms[i,k].Protonen+atoms[i,k].Neutronen));
Textout(atoms[i,k].x+4,atoms[i,k].y+16,inttostr(atoms[i,k].Protonen));
end;
end;
end;
...