Peano curve: Difference between revisions

Content added Content deleted
(→‎{{header|Fōrmulæ}}: Added L-system solution)
Line 472: Line 472:


'''Solution'''
'''Solution'''

=== Variant 1, by recursion ===


[[File:Fōrmulæ - Peano curve 01.png]]
[[File:Fōrmulæ - Peano curve 01.png]]
Line 480: Line 482:


[[File:Fōrmulæ - Peano curve 03.png]]
[[File:Fōrmulæ - Peano curve 03.png]]

=== Varian 2, by L-system ===

There are generic functions written in Fōrmulæ to compute an L-system in the page [[L-system#Fōrmulæ | L-system]].

The program that creates a Peano curve is:

[[File:Fōrmulæ - L-system - Peano Curve 01.png]]

[[File:Fōrmulæ - L-system - Peano Curve 02.png]]


=={{header|FreeBASIC}}==
=={{header|FreeBASIC}}==