Divide pattern calculation onto steps, that might be interrupted by resizing or scaling.
Divide pattern calculation onto steps, that might be interrupted by resizing or scaling.