Peano curve: Difference between revisions
→{{header|Fōrmulæ}}: added Peano-Meander variant by L-system
m (→{{header|ALGOL 68}}: comments) |
(→{{header|Fōrmulæ}}: added Peano-Meander variant by L-system) |
||
Line 538:
'''Solution'''
===
[[File:Fōrmulæ - Peano curve 01.png]]
'''Test cases'''▼
[[File:Fōrmulæ - Peano curve 02.png]]
Line 548 ⟶ 546:
[[File:Fōrmulæ - Peano curve 03.png]]
▲'''Test cases'''
=== Varian 2, by L-system ===▼
=== Peano-Meander variant, 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-Meander curve is:
[[File:Fōrmulæ - L-system - Peano-Meander curve 01.png]]
[[File:Fōrmulæ - L-system - Peano-Meander curve 02.png]]
The program that creates a Switch-back Peano curve is:
[[File:Fōrmulæ - L-system - Peano Curve 01.png]]
|