Skip to content

Commit

Permalink
Merge pull request #13 from jrdnbradford/sticker-improvements
Browse files Browse the repository at this point in the history
Improve sticker/logo creation
  • Loading branch information
jrdnbradford authored Jul 3, 2024
2 parents 7443d77 + ab36365 commit 6b87d30
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 21 deletions.
21 changes: 0 additions & 21 deletions data-raw/create_hex.R

This file was deleted.

27 changes: 27 additions & 0 deletions data-raw/create_sticker.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
signature_url <- "https://upload.wikimedia.org/wikipedia/commons/a/a7/Lovecraft_signature_1924-02-02.png"
signature_dest_path <- file.path("data-raw", "stickers", "signature.png")
raw_log_path <- file.path("data-raw", "stickers", "logo-raw.png")

download.file(signature_url, signature_dest_path)

hexSticker::sticker(
signature_dest_path,
package = "lovecraftr",
url = "{lovecraftr}",
spotlight = FALSE,
h_size = 1.5,
h_color = "black",
h_fill = "#fdfdf2",
p_size = 0.5,
p_y = 0.1,
s_x = 1,
s_y = 0.95,
s_width = 0.95,
u_size = 4,
u_y = 0.1,
u_color = "black",
filename = raw_log_path,
dpi: 600
)

usethis::use_logo(raw_log_path)
Binary file added data-raw/stickers/logo-raw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data-raw/stickers/signature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6b87d30

Please sign in to comment.