Koch curve: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 1,171: Line 1,171:
http://lambdaway.free.fr/lambdawalks/?view=koch
http://lambdaway.free.fr/lambdawalks/?view=koch
</lang>
</lang>

=={{header|Logo}}==

{{works with|FMSLogo}}

<lang >
to ff :l :i
cs
right 90
pd
pr [lenght] show form :l 4 0
pr [iterations] show form :i 4 0
koch :l :i
end

to koch :len :iterations
ifelse :iterations = 1 [fd :len] [
koch :len :iterations - 1
left 60
koch :len :iterations - 1
right 120
koch :len :iterations - 1
left 60
koch :len :iterations - 1]
end

to zzz
ifelse YesNoBox [Welcome] [YES=run it, NO=show me the code] [ff 22 3] [edall]
end

Make "startup [zzz]
</lang>



=={{header|Mathematica}}/{{header|Wolfram Language}}==
=={{header|Mathematica}}/{{header|Wolfram Language}}==