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