15.2. Code for chapter 2

15.2.1. Figure 2

Code for the line styles figure

line[10]
for i in 0..10:
    s[i]: .from a.point(i%) : .to a.point(i%)
end
[l.style = s for l in lines and s in styles]