Generate square from center point? : <p>I have coordinates of the center point of a square I would like to generate, the only bits of information I have is the location of the center point (example: 4,9) and the width/height (example: 10) of the square. I want to loop over every pixel of the square.</p>

<p>Each block here represents a loop, the gold is the location of the "center" (I know it's off-center because it's an even number). <a href="https://i.imgur.com/U5Orrff.png" rel="nofollow noreferrer">http://i.imgur.com/U5Orrff.png</a></p>

<p>The width will always be the same as the height and vice versa, however they can be any number from 1-25.</p>
