gridpattern
gridpattern copied to clipboard
'maze' pattern?
-
@ddauber recently posted some cool generated mazes in R on Twitter:
- https://twitter.com/daniel_dauber/status/1501133268409847808
- https://twitter.com/daniel_dauber/status/1500893541890932746
- https://twitter.com/daniel_dauber/status/1501281850400010242
- Code for his cool mazes might eventually show up here?: https://github.com/ddauber/generative_art
- Unsure if his examples will be made available under a permissive license (like MIT license) or packaged into an R package...
-
A number of maze generation algorithms exist: https://en.wikipedia.org/wiki/Maze_generation_algorithm
-
A number of R packages that plot mazes seem to exist: https://www.r-pkg.org/search.html?q=maze
-
{mazing} implemented in {base} graphics
- Can use
gridGraphics::grid.echo()to convert {base} graphics to {grid} graphics...
- Can use
-
{mazealls} uses {TurtleGraphics}
- Seems like {TurtleGraphics} uses {grid} to draw to active graphics device
- Can use
grid::grid.get()to get a grob from "display list"...
-
{mazeGen} and {networkGen} generates "html" pages of mazes
-
I opened a PR in {mazing} that would likely make it easier to make a "maze" pattern powered by it: https://github.com/kstreet13/mazing/pull/4