# pikchr example inspired by
# https://matheplanet.at/matheplanet/nuke/html/viewtopic.php?topic=249520&start=0&lps=1816239#v1816239
# started from
# https://pikchr.org/home/doc/trunk/homepage.md
Title: "My first pikchr."
move down from Title.w
In: arrow right 50% "x" above rjust italic
circlerad = 1.5mm
A1: circle "+"
move from A1.sw go (2*circlerad) heading (180+45)
"-" above #color red
arrow from A1.e right 50%
box "G₁" italic
line right 50%
O: dot
Out: arrow right 50% "y" above ljust italic
# mark arrow centres
#dot color red at Out.c
#dot color red at In.c
move down 50% from last box.s
G2: box "G₂" italic
move down 50% from last box.s
G3: box "G₃" italic
move from O.s down until even with G2.e
A2: circle "+" with .c at previous.end
move from A2.sw go (2*circlerad) heading (180+45)
"-" above
arrow from O.s to A2.n
arrow from G3.e right until even with A2.s then up to A2.s # "-" above ljust
arrow from A2.w to G2.e
move from G2.w left until even with A1.s
D: dot
arrow from G2.w to D.e
arrow from D.n to A1.s # "-" above ljust
arrow from D.s down until even with G3.w then right to G3.w
#arrow down from last circle.s