-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogo.jl
75 lines (51 loc) · 1.55 KB
/
logo.jl
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
using Luxor
const julia_blue = (0.251, 0.388, 0.847)
const julia_purple = (0.584, 0.345, 0.698)
const julia_green = (0.22, 0.596, 0.149)
const julia_red = (0.796, 0.235, 0.2)
function draw_full(type)
currentwidth = 900 # pts
currentheight = 250 # pts
Drawing(currentwidth, currentheight, "logo.$type")
sethue(julia_red)
circle(Point(40, 30), 25, :fill)
sethue(julia_purple)
circle(Point(115, 30), 25, :fill)
sethue(julia_green)
circle(Point(830, 30), 25, :fill)
# origin()
fontsize(300)
fontface("Literata SemiBold")
str = "actScı" # Uses "dotless i"
translate(0, 225)
textpath(str) # make text into a path
setline(3)
setcolor("black")
fillpreserve() # fill but keep
finish()
end
draw_full("png")
draw_full("svg")
preview()
function draw_square(type)
currentwidth = 250 # pts
currentheight = 250 # pts
Drawing(currentwidth, currentheight, "logo_square.$type")
sethue(julia_red)
circle(Point(85, 30), 25, :fill)
sethue(julia_purple)
circle(Point(160, 30), 25, :fill)
# origin()
fontsize(300)
fontface("Literata SemiBold")
str = "a" # Uses "dotless i"
translate(45, 225)
textpath(str) # make text into a path
setline(3)
setcolor("black")
fillpreserve() # fill but keep
finish()
end
draw_square("png")
draw_square("svg")
preview()