makeShapeStringArt: makeShapeStringArt

View source: R/K004_shapeStringArt.R

makeShapeStringArtR Documentation

makeShapeStringArt

Description

Creates string art whose points are on scaled variations of a starting shape and the lines are between the shapes.

Usage

makeShapeStringArt(
  x = c(0, 1, 1),
  y = c(0, 0, 1),
  focus = NULL,
  scales = (10:6)/10,
  distances = c(0, 1, 0, 1),
  loop = rep(TRUE, 4),
  ...
)

Arguments

x, y

co-ordinates of the original shape.

focus

co-ordiantes of the centre to scale from. NULL, the default, uses c(mean(x),mean(y)) as the focus point.

scales

scaling factors for the shapes.

distances, loop

string art parameters

Value

Returns a component that represents a piece of stringArt.

See Also

Other stringArt: makeMandalaStringArt(), makeStringArt(), stringArt

Examples

print(1+1)

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