Peace be upon you. There is a problem that occurs to me when I draw a group of rectangles from different starting points. One draws twice correctly and the other draws all the rectangles from the starting point as in the picture
Misleading shapes are drawn from the same point