-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.typ
106 lines (85 loc) · 1.73 KB
/
test.typ
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
#import "/src/tiptoe.typ" as tiptoe: *
#let line = tiptoe.line.with(tip: tiptoe.stealth)
#let path = tiptoe.path.with(tip: tiptoe.stealth)
#line(tip: tiptoe.bar.with(stroke: red, width: 500%), stroke: (thickness: 5pt, dash: "dashed"))
// #path(
// // toe: none,
// (-10pt, 0pt),
// ((10pt, 0pt), (-10pt, 0pt), (10pt, 0pt)),
// ((20pt, 20pt)),
// )
#grid(
columns:2,
[
#v(-1mm)
#line(tip: tiptoe.stealth, stroke: 1pt, length: 1cm) \
#line(tip: tiptoe.stealth, stroke: 2pt, length: 1cm) \
#line(tip: tiptoe.stealth, stroke: 3pt, length: 1cm) \
]
)
#let compare(..coords) = {
place(path(..coords))
hide(std.path(..coords, stroke: red))
}
#compare(
(-10pt, 0pt),
(10pt, 0pt),
(20pt, 20pt)
)
#compare(
// toe: none,
// tip: none,
((-10pt, 0pt), (-5pt, -5pt)),
((10pt, 0pt), (-10pt, 0pt)),
((20pt, 20pt), (5pt, -5pt)),
)
#compare(
((-10pt, 0pt)),
((10pt, 0pt), (-10pt, 0pt)),
((20pt, 20pt)),
)
#compare(
((-10pt, 0pt), (-5pt, -5pt)),
((10pt, 0pt),),
((20pt, 20pt), (5pt, -5pt)),
)
#compare(
((-10pt, 0pt), (-5pt, -5pt)),
((10pt, 0pt), (0pt, 5pt), (0pt, -15pt)),
((20pt, 20pt), (5pt, -5pt)),
)
#compare(
((0pt, 0pt), (-20pt, 0pt)),
((50pt, 10pt), (-20pt, 0pt))
)
#compare(
((0pt, 0pt), (-20pt, 0pt), (20pt, 0pt)),
((50pt, 10pt), (-20pt, 0pt), (20pt, 0pt))
)
#line() \
#line(
tip: tiptoe.combine(
tiptoe.stealth,
tiptoe.stealth,
)
) \
#line(
tip: tiptoe.combine(
tiptoe.square.with(fill: blue),
tiptoe.circle.with(fill: red),
)
) \
#line(
tip: tiptoe.combine(
tiptoe.bar.with(width: 1000%),
tiptoe.stealth
),
toe: tiptoe.combine(
tiptoe.bar.with(width: 1000%),
tiptoe.stealth
)
) \
#line(
tip: tiptoe.rays.with(n: 4),
toe: tiptoe.rays,
) \