canvas_mesh | R Documentation |
This function draws one or more rotating circular morphing meshes on the canvas.
canvas_mesh(
colors,
background = "#fafafa",
transform = c("perlin", "fbm", "simplex", "cubic",
"worley", "knn", "rf", "svm"),
lines = 500,
iterations = 500,
mixprob = 0
)
colors |
a string or character vector specifying the color(s) used for the artwork. |
background |
a character specifying the color used for the background (and the hole). |
transform |
a character specifying the type of transformation to use for the radius. |
lines |
an integer specifying the number of lines to darw. |
iterations |
a positive integer specifying the number of iterations of the algorithm. |
mixprob |
a value between 0 and 1 specifying the probability of a line segment getting another color. |
A ggplot
object containing the artwork.
Koen Derks, koen-derks@hotmail.com
https://web.archive.org/web/20231130151102/http://rectangleworld.com/blog/archives/462
colorPalette
set.seed(2)
# Simple example
canvas_mesh(colors = colorPalette("origami"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.