dragon_curve: Dragon Curve

Description Usage Arguments Value See Also Examples

View source: R/dragon_curve.R

Description

Repeatedly fold a line to create a space-filling curve.

Usage

1

Arguments

n

How often the curve will be folded. Must be at least 1.

Value

A matrix of class "dragon_curve" with two columns for the x and y coordinates of the folds.

See Also

plot.dragon_curve()

Examples

1
2
d <- dragon_curve(9)
plot(d)

BastiHz/fractalplotr documentation built on Sept. 9, 2021, 4:46 a.m.