-
Notifications
You must be signed in to change notification settings - Fork 1
/
EIKIFJB_hex.Rmd
168 lines (107 loc) · 4 KB
/
EIKIFJB_hex.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
---
title: "EIKIFJB"
output: html_notebook
---
This script creates a hex sticker with the abbreviation "EIKIFJB" (Everything I know is from Jenny Bryan)
```{r setup}
library(hexSticker)
library(showtext)
library(here)
```
Fonts from [Google fonts](http://www.google.com/fonts)
The image credit:
Source: https://www.flaticon.com/free-icon/laptop_22787?term=laptop%20fire&page=1&position=1
<div>Icon made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
The image is licensed by Flaticon as "Free for personal and commercial purpose with attribution."
### Sigmar One
```{r}
## Loading Google fonts (http://www.google.com/fonts)
font_add_google("Sigmar One", "sigmar")
## Automatically use showtext to render text for future devices
showtext_auto()
##
sticker(here("img", "fire_256.png"), package="EIKIFJB",
s_x=1, s_y=0.85, s_width=0.5, s_height=0.5,
h_fill = "white", h_color = "#16161D",
p_size=24, p_color = "#B22222",
p_y = 1.45,
p_family = "sigmar",
url = "'Everything I know is from Jenny Bryan' @sharlagelfand",
# u_angle = 151,
u_color = "#B22222",
u_size = 3,
filename="EIKIFJB_sigmar_hex.png")
```
## An alternate image, and playing about with some different fonts
Laptop image by andreas160578 from Pixabay; free for commercial use, no attribution required
https://pixabay.com/photos/laptop-burning-fire-stress-support-1895382/
### Sigmar One
```{r}
## Loading Google fonts (http://www.google.com/fonts)
font_add_google("Sigmar One", "sigmar")
## Automatically use showtext to render text for future devices
showtext_auto()
##
sticker(here("img", "lappy.jpg"), package="EIKIFJB",
s_x=1, s_y=0.85, s_width=1.0, s_height=1.0,
h_fill = "white", h_color = "#16161D",
p_size=24, p_color = "#B22222",
p_y = 1.45,
p_family = "sigmar",
url = "'Everything I know is from Jenny Bryan' @sharlagelfand",
u_angle = 151,
u_color = "#B22222",
u_size = 3,
filename="EIKIFJB_sigmar_hex_photo.png")
```
### Russo One
```{r}
## Loading Google fonts (http://www.google.com/fonts)
font_add_google("Russo One", "russo")
## Automatically use showtext to render text for future devices
showtext_auto()
##
sticker(here("img", "lappy.jpg"), package="EIKIFJB",
s_x=1, s_y=0.8, s_width=1.0, s_height=1.0,
h_fill = "white", h_color = "#16161D",
p_size=26, p_color = "#E24C00",
p_y = 1.45,
p_family = "russo",
filename="EIKIFJB_russo_hex.png")
```
### Anton
```{r}
## Loading Google fonts (http://www.google.com/fonts)
font_add_google("Anton", "anton")
## Automatically use showtext to render text for future devices
showtext_auto()
##
sticker(here("img", "lappy.jpg"), package="EIKIFJB",
s_x=1, s_y=0.8, s_width=1.0, s_height=1.0,
h_fill = "white", h_color = "#16161D",
p_size=30, p_color = "#4B0082",
p_y = 1.45,
p_family = "anton",
filename="EIKIFJB_anton_hex.png")
```
## Dishwasher variant
https://twitter.com/JennyBryan/status/1248280289446481920?s=20
Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>
```{r}
## Loading Google fonts (http://www.google.com/fonts)
font_add_google("Sigmar One", "sigmar")
## Automatically use showtext to render text for future devices
showtext_auto()
##
sticker(here("img", "dishwasher_blue.png"), package="EIKIFJB",
s_x=1, s_y=0.80, s_width=0.45, s_height=0.45,
h_fill = "white", h_color = "#16161D",
p_size=24, p_color = "#4677D4",
p_y = 1.45,
p_family = "sigmar",
url = "'Everything I know is from Jenny Bryan' @sharlagelfand",
# u_angle = 151,
u_color = "#B22222",
u_size = 3,
filename="EIKIFJB_sigmar_hex.png")
```