This function draws a maze on a canvas.
canvas_maze(
color = "#fafafa",
walls = "black",
background = "#fafafa",
resolution = 20,
polar = FALSE
)
a character specifying the color used for the artwork.
a character specifying the color used for the walls of the maze.
a character specifying the color used for the background.
resolution of the artwork in pixels per row/column. Increasing the resolution increases the quality of the artwork but also increases the computation time exponentially.
logical, whether to use polar coordinates. Warning, this increases display and saving time dramatically.
A ggplot
object containing the artwork.
colorPalette
# \donttest{
set.seed(1)
# Simple example
canvas_maze(color = "#fafafa")
# }