Conditions to make a circle grow and shrink

Why are you re-declaring global variable diam as a local variable in draw()?

And in the same vein, why growth is a local variable in draw()?

Both diam & growth need to be global variables, so their current value is remembered while draw() is called back during the sketch execution.