Re-order the arguments to drawPattern() functions