# https://www.flickr.com/photos/stringrbelle/49258841782
#' @rdname rosemary
#' @export
goodnight <- function(dir = NULL, ...) {
dir <- check_dir(dir)
file <- file.path(dir, "goodnight.png")
jasmines::use_seed(1) %>%
jasmines::scene_delaunay(n = 5, grain = 500) %>%
dplyr::mutate(x = x * 2, y = y * 2, seed = 4) %>%
jasmines::unfold_tempest(
iterations = 500,
scale = .001
) %>%
dplyr::mutate(order = time) %>%
jasmines::style_ribbon(
background = "#333333",
palette = jasmines::palette_manual("white"),
alpha = c(.5, .01)
) %>%
jasmines::style_overlay(border = "#ffffff88", fill = "#00000088") %>%
jasmines::export_image(file)
cat("image written to:", file, "\n")
return(invisible(NULL))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.