Debian Codegraph @

texmf-dist/doc/latex/luatikz/example/blinea.lua

raw
1 tikz.within( '*' )
2
3 local l1 = bline{ p{ 0, 0 }, p{ 2, 3 }, bend_right = 45 }
4 local l2 = bline{ p{ 0, 3 }, p{ 2, 1 }, bend_left = 30 }
5
6 draw{ draw=red, l1 }
7 draw{ draw=blue, l2 }
8 put{
9 node{
10 at = l1.pc,
11 anchor = south,
12 rotate = l1.line.phi * 180 / math.pi,
13 text = 'red',
14 }
15 }
16 put{
17 node{
18 at = l2.pc,
19 anchor = south,
20 rotate = l2.line.phi * 180 / math.pi,
21 text = 'blue',
22 }
23 }