Sierpinski carpet: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Changed to Wren S/H)
(Added Fōrmulæ entry)
Line 3,322: Line 3,322:
end subroutine Carpet
end subroutine Carpet
end program Sierpinski_carpet</syntaxhighlight>
end program Sierpinski_carpet</syntaxhighlight>

=={{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 carpet is:

[[File:Fōrmulæ - L-system - Sierpiński carpet 01.png]]

[[File:Fōrmulæ - L-system - Sierpiński carpet 02.png]]


=={{header|Gnuplot}}==
=={{header|Gnuplot}}==