-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlogo.g2d
47 lines (37 loc) · 808 Bytes
/
logo.g2d
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
// Image size
size(128)
// Transparent background
clear()
viewport(-1.0, 1.0, -1.0, 1.0)
// Head (upper)
quad(-0.8, 0, -0.3, 0.6, 0.3, 0.6, 0.8, 0)
fillColor("#af2206")
strokeColor("#371008")
strokeWeight(4)
fillAndStroke()
// Head (lower)
triangle(-0.8, 0, 0, -0.8, 0.8, 0)
fillColor("#891903")
strokeColor("#371008")
fillAndStroke()
// Eye (big)
circle(-0.2, 0, 0.3)
// Eye (small)
circle(0.3, 0, 0.1)
fillColor("#fafafa")
strokeColor("#a4abab")
fillAndStroke()
// Iris (big eye)
circle(-0.2, 0, 0.15)
fillColor("#fef71b")
strokeColor("#d7d107")
fillAndStroke()
p := transform(0.3, lerp(0, -0.8, 0.5))
identity()
rotate(radians(-45), p[0], p[1])
fs := max(0.04 * min(WIDTH, HEIGHT), 18)
strokeColor("#fafafa")
fontSize(fs)
text("g2D", p[0], p[1], 0.5, -0.1)
// save the image
snapshot("logo.png")