Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Suez canal excavator meme #18

Merged
merged 1 commit into from Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions NAMESPACE
Expand Up @@ -16,6 +16,7 @@ export(meme_text_kermit)
export(meme_text_pigeon)
export(meme_text_printer)
export(meme_text_rock)
export(meme_text_suez)
export(meme_text_top)
export(meme_text_trump)
export(meme_tweet)
Expand Down
26 changes: 26 additions & 0 deletions R/text-annotate.R
Expand Up @@ -372,3 +372,29 @@ meme_text_anakin <- function(img, anakin, padme,
)
}

#' @param evergiven A character string. Big text for the ship in the `"SuezExcavator"` meme.
#' @param excavator A character string. Little text for the excavator in the `"SuezExcavator"` meme.
#'
#' @inheritParams stringr::str_wrap
#' @describeIn meme_text_distbf Text function for the Suez canal excavator meme.
#'
#' @examples
#' meme_get("SuezExcavator") %>%
#' meme_text_suez("R programming",
#' "Me learning R programming")
#'
#' @export
meme_text_suez <- function(img, evergiven, excavator,
font = "Impact", color = "white", strokecolor = NULL,
size = 40, width = 30, ...){
img %>%
image_annotate(str_wrap(evergiven, width),
font = font, color = color, strokecolor = strokecolor,
gravity = "Center", location = geometry_point(60,-200), size = size, ...
) %>%
image_annotate(str_wrap(excavator, width),
font = font, color = color, strokecolor = strokecolor,
gravity = "Center", location = geometry_point(-60,80), size = size / 2, ...
)
}

1 change: 1 addition & 0 deletions data-raw/know-your-meme-links.csv
Expand Up @@ -28,6 +28,7 @@ Rainbow,
ShiaJustDoIt,https://knowyourmeme.com/memes/shia-labeouf-s-intense-motivational-speech-just-do-it
Spongebob,https://knowyourmeme.com/memes/mocking-spongebob
SuccessKid,https://knowyourmeme.com/memes/success-kid-i-hate-sandcastles
SuezExcavator,https://knowyourmeme.com/memes/excavator-digging-out-suez-canal-ship
ThatWouldBeGreat,https://knowyourmeme.com/memes/that-would-be-great
TheRockDriving,https://knowyourmeme.com/memes/the-rock-driving
ThinkAboutIt,https://knowyourmeme.com/memes/roll-safe
Expand Down
Binary file modified data/blankmemes.rda
Binary file not shown.
Binary file added inst/extdata/suezexcavator.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions man/meme_text_distbf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.