Summary
You saw that TikZ’s loops are incredibly flexible. You can use loops whenever you see stuff repeating and want to save yourself from writing repetitive code.
Calculating with coordinates can now make your life easier. Just add a coordinate to move in the x or y direction or with an angle or distance. Use factors to place something in between nodes or coordinates. That’s not just for geometry; this handy syntax is helpful for any lines, arrows, or positioning nodes in complex diagrams in a perfectly controlled manner.
Letting TikZ calculate intersection points of lines, curves, and complex paths helps you create more intricate shapes based on simpler ones.
In the next chapter, you will learn how to transform coordinates, paths, and scopes, such as by transposition and rotation.