Description Usage Arguments Author(s) See Also Examples
This function generates a single iteration of the Sierpinski Carpet, which replaces a square with 8 smaller squares on the inside perimeter of the original square.
1 | sierpinski4(x)
|
x |
A 2-by-n matrix representing a set of points |
Brian Lee Yung Rowe
1 2 3 | library(lambda.tools)
x <- polygon(4)
xn <- fold(1:5, function(a,b) sierpinski4(b), x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.