library(hexSticker)
library(showtext)
## Loading Google fonts (http://www.google.com/fonts)
font_add_google("Public Sans", regular.wt = 400)
## Automatically use showtext to render text for future devices
showtext_auto()
imgurl <- system.file("assets/barbecue.svg", package = "dewey")
sticker(imgurl, 
        s_x = 1,
        s_y = 1,
        s_width = .7,
        s_height = .7,
        package = "dewey",
        p_x = .7,
        p_y = 1.4,
        p_color = "white",
        p_size = 62,
        p_family = "Public Sans",
        h_fill = "#532d8e",
        h_color = "#B1B3B5",
        dpi = 1200,
        filename = "assets/sticker.png")

sticker(imgurl, 
        s_x = 1,
        s_y = 1,
        s_width = .7,
        s_height = .7,
        package = "dewey",
        p_x = .7,
        p_y = 1.4,
        p_color = "white",
        p_size = 5,
        p_family = "Public Sans",
        h_fill = "#532d8e",
        h_color = "#B1B3B5",
        dpi = 1200,
        filename = "assets/sticker.svg")


guslipkin/dewey documentation built on March 16, 2023, 8:19 a.m.