Skip to content

Commit

Permalink
add package hexsticker
Browse files Browse the repository at this point in the history
It's actually not very good because I'm not a good designer. But I thought
it would be nice if it looked something like this. Maybe someone with
better graphic skills will improve it.

The code and base images used for the final sticker are included.
  • Loading branch information
pdrhlik committed Aug 26, 2018
1 parent d795023 commit 849c175
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# sweary
# sweary <img src="sticker/sweary-sticker.png" align="right" width="150" />

Sweary is an R package that contains a database of swear words from different languages, cherry picked by native speakers.

Expand Down
19 changes: 19 additions & 0 deletions data-raw/sticker.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
library(hexSticker)

sysfonts::font_add(
family = "South Park",
regular = "sticker/southpark.ttf"
)

hexSticker::sticker(
"sticker/sweary-with-text.png",
package = "",
s_x = 1.1,
s_y = 1,
s_width = 0.9,
p_color = "#000000",
h_fill = "#FFFFFF",
h_color = "#000000",
filename = "sticker/sweary-sticker.png",
p_family = "South Park"
)
Binary file added sticker/face-profile.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 added sticker/face.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 added sticker/southpark.ttf
Binary file not shown.
Binary file added sticker/sweary-sticker.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 added sticker/sweary-with-text.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 added sticker/sweary.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 849c175

Please sign in to comment.