CliffordAttractor: Clifford Attractors

CliffordAttractorR Documentation

Clifford Attractors

Description

Functions to calculate the sequence of points given by the following dynamical system in order to draw the attractor of the system.

  • x[n+1]=d*sin(a*x[n])-sin(b*y[n])
  • y[n+1]=c*cos(a*x[n])+cos(b*y[n])

runCliffordAttractor calculates the attractor. makeCliffordAttractor makes a component that calculates and plots the Attractor.

Usage

makeCliffordAttractor(type = "points", ...)

runCliffordAttractor(
  a = -1.4,
  b = 1.6,
  c = 1,
  d = 0.7,
  inputx = 0,
  inputy = 0,
  x = NULL,
  y = NULL,
  runTime = 1e+05,
  sampleSize = NULL,
  reuseInput = FALSE
)

Arguments

type

The name(s) of the plotting function(s) used to plot the component. Defaults to "points". This can also include the names of classes linked to a plotting function.

...

parameters passed to the component and the component function runCliffordAttractor. See "details" for more information.

a, b, c, d

The four parameters of the attractor from the above equations.

See Also

http://paulbourke.net/fractals/peterdejong/

Other 2dAttractors: DeJongAttractor, SvenssonAttractor

Examples

art=makeCliffordAttractor(cex=0.1,col=rgb(0,0,0,0.1))
easyPlot(art,preserveAspectRatio=TRUE)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.