_Title "Play Offs Chart - Recursion example" 'b+ 2021-10-27 '2021-11-02 A few mods and ready for the playoffs
'Recursion is a sub or function that calls itself until it's job is done
'Here is a grahics
recThis 700, 350, 350 / 2, 0
'first thing to ask in recursive subroutine is are we done!!!
' no not done
x1
= x
+ 1.4 * arm
* Cos(pi
/ 2): y1
= y
+ 1.4 * arm
* Sin(pi
/ 2) x2
= x
+ 1.4 * arm
* Cos(1.5 * pi
): y2
= y
+ 1.4 * arm
* Sin(1.5 * pi
) recThis x1, y1, .7 * arm, level + 1
recThis x2, y2, .7 * arm, level + 1
x1 = x: y1 = y
x2
= x
+ 100 * Cos(pi
): y2
= y
+ 100 * Sin(pi
) recThis x2, y2, .7 * arm, level + 1