Sierpinski square curve: Difference between revisions
Added Fōrmulæ entry
(Added Fōrmulæ entry) |
|||
Line 467:
{{out}}
<pre>Output is similar to C++.</pre>
=={{header|Fōrmulæ}}==
{{FormulaeEntry|page=https://formulae.org/?script=examples/L-system}}
'''Solution'''
It can be done using an [[wp:L-system|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 Sierpiński's square curve is:
[[File:Fōrmulæ - L-system - Sierpiński's square curve 01.png]]
[[File:Fōrmulæ - L-system - Sierpiński's square curve 02.png]]
=={{header|Go}}==
|