

TT total turning is a good way to make sure angles close up nicely
IF it is divisble with 360 — MODULO 360 takes care of that!
so in this case the input is 72 – the rest will follow because 360 mod 72 = 0
(3 x 72 x 2 = 432) — 432 x 5 = 2160 — 2160/6 = 360
see this variation of doublepoly with the TOTAL TURNING added:






see another example using the modulo to execute a looping stucture:



