Toggle between interval for drawing

Maybe could be solved by applying a constant to the rate of
the sinusoidal wave, but this hack is sufficiently hack
and not that clever.