sierpinski3: Generate the Sierpinski Gasket

Description Usage Arguments Author(s) See Also Examples

View source: R/ifs.R

Description

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.

Usage

1

Arguments

x

A 2-by-n matrix representing a set of points

Author(s)

Brian Lee Yung Rowe

See Also

sierpinski4 sierpinski5

Examples

1
2
3
library(lambda.tools)
x <- polygon(3)
xn <- fold(1:5, function(a,b) sierpinski3(b), x)

zatonovo/fractalrock documentation built on May 15, 2021, 7:28 p.m.