This function paints functions with random parameters on a canvas.
canvas_function(
colors,
background = "#fafafa",
by = 0.01,
polar = TRUE,
formula = NULL
)
a string specifying the color used for the artwork.
a character specifying the color used for the background.
a value specifying the step size between consecutive points.
logical. Whether to draw the function with polar coordinates.
optional, a named list with 'x' and 'y' as structured in the example. If NULL
(default), chooses a function with random parameters.
A ggplot
object containing the artwork.
colorPalette