Skip to content

Commit

Permalink
logo: replace png by svg
Browse files Browse the repository at this point in the history
  • Loading branch information
lschneiderbauer committed Dec 29, 2024
1 parent b0e6fa6 commit e86da1a
Show file tree
Hide file tree
Showing 7 changed files with 690 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ knitr::opts_chunk$set(
)
```

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

<!-- badges: start -->

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 -->

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

<!-- badges: start -->

Expand Down
6 changes: 4 additions & 2 deletions data-raw/hex-logo.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
library(hexSticker)
library(tidyverse)
library(showtext)
library(svglite) # to produce an svg

## Loading Google fonts (http://www.google.com/fonts)
font_add_google("Tiny5", db_cache = FALSE)
Expand Down Expand Up @@ -39,9 +40,10 @@ sticker(
h_fill = "white",
h_color = "black",
url = "fCWTr",
u_size = 26,
#u_size = 26, # 26 for png
u_size = 9, # for svg
u_family = "Micro 5",
u_x = 1.15,
u_y = 0.23,
filename = "inst/figures/hex-logo.png"
filename = "inst/figures/hex-logo.svg"
) |> plot()
Binary file removed inst/figures/hex-logo.png
Binary file not shown.
342 changes: 342 additions & 0 deletions inst/figures/hex-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed man/figures/logo.png
Binary file not shown.
342 changes: 342 additions & 0 deletions man/figures/logo.svg
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 e86da1a

Please sign in to comment.