Autor Beitrag
delphinap
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Di 09.05.06 14:33 
Hallo,
ich würde gerne mit der Turtle Komponente ein Schneckenmuster zeichnen lassen. Sollte dann in etwa so aussehen (meine Paint Künste lassen zu wünschen übrig):
user defined image

natürlich alles gerade und mit den gleichen Abständen =)
Ich scheitere ständig oO

sl
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Di 09.05.06 14:45 
wo liegt jetzt das problem ?
delphinap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Di 09.05.06 14:46 
ehm, dass ich das nicht hinbekomme und daher etaws Hilfe benötige =)
Horschdware
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 744
Erhaltene Danke: 54

Win XP Pro, Win 7 Pro x64
Delphi 7, Delphi XE, C++ Builder 5, SAP R/3
BeitragVerfasst: Di 09.05.06 14:57 
Stell dir vor du wärst die Turtle Komponente.
Was machst du?

Schritt vor
Drehung 90° links
Schritt vor
Drehung 90° links
Schritt vor
...
...

Das einzige was sich Ändert ist die Schrittlänge.
Die muss sich eben nach jeder Drehung oder nach jedem Schritt verringern.

_________________
Delphi: XE - OS: Windows 7 Professional x64
delphinap Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Di 09.05.06 15:08 
also eine for schleife in der immer wieder

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
for i := 1 to 50 do
begin
turtle1.draw(j);
turtle1.turn(angle);
j := j + 10;
end;


wiederholt wird ?

edit: kk habs =)