anthonypileggi / worrrd

Wordsearch and crossword puzzle generator
https://anthonypileggi.github.io/worrrd/
Other
7 stars 2 forks source link

Add background image #9

Open anthonypileggi opened 5 years ago

anthonypileggi commented 5 years ago

Do this

When providing an image file to guide the wordsearch/crossword shape, give an option to display the actual image (possibly with some transparence) in the background.

anthonypileggi commented 3 years ago

Example w/ cowplot package:

banana <- "https://upload.wikimedia.org/wikipedia/commons/9/96/Tux_Paint_banana.svg"
words <- c("banana", "apple", "grapes", "orange", "pear", "kumquat")
x <- wordsearch(words, r = 20, c = 20, image = banana)
cowplot::ggdraw() +
  cowplot::draw_image(banana) +
  cowplot::draw_plot(plot(x, solution = TRUE))