View source: R/K004_shapeStringArt.R
makeShapeStringArt | R Documentation |
Creates string art whose points are on scaled variations of a starting shape and the lines are between the shapes.
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), ... )
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 |
Returns a component that represents a piece of stringArt.
Other stringArt:
makeMandalaStringArt()
,
makeStringArt()
,
stringArt
print(1+1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.