sierpinski4: Generate the Sierpinski Carpet

Description Usage Arguments Author(s) See Also Examples

View source: R/ifs.R

Description

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.

Usage

1

Arguments

x

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

Author(s)

Brian Lee Yung Rowe

See Also

sierpinski3 sierpinski5

Examples

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

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