pause draw() loop if sketch is hidden. restart draw() loop if sketch is visible