Skip to content

Commit

Permalink
Merge pull request #4 from shinyworks/logo
Browse files Browse the repository at this point in the history
Add a simple hex logo.
  • Loading branch information
jonthegeek authored Oct 26, 2024
2 parents 653ea15 + 3025674 commit 4ba5a9f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ knitr::opts_chunk$set(
)
```

# favawesome
# favawesome <a href="https://shinyworks.github.io/favawesome/"><img src="man/figures/logo.png" align="right" height="139" alt="favawesome website" /></a>

<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# favawesome
# favawesome <a href="https://shinyworks.github.io/favawesome/"><img src="man/figures/logo.png" align="right" height="139" alt="favawesome website" /></a>

<!-- badges: start -->

Expand Down
24 changes: 24 additions & 0 deletions man/figures/hex.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This requires extra packages, but I'm not including them in suggests because
# nobody should ever need to do this.

# install.packages("hexSticker")
# install.packages("usethis")
# install.packages("sysfonts")
sysfonts::font_add_google("Varela Round")
png_path <- tempfile(fileext = ".png")
fontawesome::fa_png(
"icons", fill = "#338500",
file = png_path
)
hexSticker::sticker(
png_path,
package = "favawesome",
filename = "man/figures/logo.png",
s_x = 1,
h_fill = "#FFFFFF",
h_color = "#338500",
p_color = "#338500",
p_size = 20,
p_family = "Varela Round"
)
# usethis::use_logo("man/figures/logo.png")
Binary file added 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 4ba5a9f

Please sign in to comment.