https://github.com/stscl/sdsfun_logo
Logo of R package sdsfun
https://github.com/stscl/sdsfun_logo
Last synced: about 1 year ago
JSON representation
Logo of R package sdsfun
- Host: GitHub
- URL: https://github.com/stscl/sdsfun_logo
- Owner: stscl
- Created: 2024-08-09T03:28:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-06T07:01:21.000Z (over 1 year ago)
- Last Synced: 2025-06-06T05:11:34.784Z (about 1 year ago)
- Language: R
- Size: 11.4 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
``` r
library(showtext)
showtext_auto(enable = TRUE)
font_add("ShineTypewriter", regular = "./ShineTypewriter-lgwzd.ttf")
library(magick)
library(hexSticker)
sticker(
subplot = './bg.png',
s_x = 0.96,
s_y = 0.95,
s_width = 2,
s_height = 2,
package = "sdsfun",
p_family = "ShineTypewriter",
p_size = 25,
p_color = ggplot2::alpha("#ffffff",.85),
p_x = 1.05,
p_y = 1,
dpi = 300,
asp = 1,
h_size = 1.75,
h_color = ggplot2::alpha("#d8c8ab",.75),
h_fill = ggplot2::alpha('#ffffff',0),
white_around_sticker = T,
url = "https://stscl.github.io/sdsfun",
u_color = "white",
u_size = 5,
filename = "sdsfun_logo1.png"
)
# finally make sdsfun_logo1.png background transparent
# https://uutool.cn/img-matting/
image_read('./sdsfun_logo1.png') |>
image_resize("240x278")|>
image_write('./sdsfun_logo.png')
```
