Re-order the variables in the main drawSample function.
This lets us use let more liberally.