fractus: Generate fractals based on the algorithm described by...

Description Usage Arguments Author(s) References Examples

Description

This function will generate fractals by randomly assigning a point (i.e. a seed) within a regular n-gon. Next, a point (r) is placed at a fractional distance from a randomly assigned polygonal vertex. This process is continued i times at the user's request.

Usage

1
fractus(n, r, shape, point, title = TRUE)

Arguments

n

The total number of points that will be placed on the image.

r

The fractional distance from either the seed or prior point in which the next point in the sequence is placed.

shape

Defines the polygon shape (triangle, square, or pentagon).

point

Size of the points placed on the graph.

c.vert

Allows or prevents consecutive vertices in sequence to be plotted. Defaults to TRUE.

title

Add descriptive title to graph. Defaults to TRUE.

Author(s)

Brandon Monier, brandon.monier@sdstate.edu

References

Barnsley, Michael F. "Fractal modeling of real world images." The science of fractal images. Springer New York, 1988. 219-242.

Examples

1
2
3
4
  
    fractus(15000, 0.5, "triangle", point = 0.5, c.vert = TRUE,
            title = TRUE)
  

btmonier/fractus documentation built on May 20, 2019, 4:08 p.m.