-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyfeyn-logo.py
54 lines (40 loc) · 1.2 KB
/
pyfeyn-logo.py
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
from pyx import *
c = canvas.canvas()
sep = 0.2
p1 = path.path(
path.moveto(-3, -4),
path.lineto(1-sep,0-sep),
path.moveto(1+sep, 0+sep),
path.curveto(2,1, 3,1, 4,0),
path.curveto(5,-1, 6,-1, 7-sep,0-sep),
path.moveto(7+sep, 0+sep),
path.curveto(8,1, 9,1, 10,0),
path.lineto(14,-4)
)
t1 = path.path(
path.moveto(14,-4),
path.lineto(14+sep,-4-sep/2.0),
path.moveto(14,-4),
path.lineto(14+sep/2.0,-4-sep)
)
p2 = path.path(
path.moveto(14, 4),
path.lineto(10+sep, 0+sep),
path.moveto(10-sep, 0-sep),
path.curveto(9,-1, 8,-1, 7,0),
path.curveto(6,1, 5,1, 4+sep,0+sep),
path.moveto(4-sep, 0-sep),
path.curveto(3,-1, 2,-1, 1,0),
path.lineto(-3,4)
)
t2 = path.path(
path.moveto(-3,4),
path.lineto(-3-sep,4+sep/2.0),
path.moveto(-3,4),
path.lineto(-3-sep/2.0,4+sep)
)
c.stroke(p1, [color.cmyk.RoyalBlue, style.linewidth.THICK, deco.earrow.LARge, deco.barrow])
c.stroke(t1, [color.cmyk.RoyalBlue, style.linewidth.thick])
c.stroke(p2, [color.cmyk.MidnightBlue, style.linewidth.THICK, deco.earrow.LARge, deco.barrow])
c.stroke(t2, [color.cmyk.MidnightBlue, style.linewidth.thick])
c.writePDFfile("pyfeyn-logo")