Draw patterns based on the square.