To draw from the center out, position the pointer
where you want the center of the shape to be, press Alt (Windows)
or Option (Mac OS), and then drag diagonally to any corner
or edge until the shape is the desired size.

Drawing from the corner (left) and drawing from the center
(right)
Note: Drawing from the center out is the
default behavior of the Star tool in Illustrator and the Polygon
tool in Illustrator and Photoshop.