Drawing modes of rectangles and ellipsis

» 02 September 2008 » In Personal projects »

rectMode();
ellipseMode();

Both can have 4 different modes:

CENTER: xCenter, yCenter, width, height (The default for ellipses)
RADIUS: xCenter, yCenter, xRadius, yRadius
CORNER: xTopLeftCorner, yTopLeftCorner, width, height (The default for rectangles)
CORNERS: xTopLeftCorner, yTopLeftCorner, xBottomRightCorner, yBottomRightCorner

Tags:

Trackback URL

No Comments on "Drawing modes of rectangles and ellipsis"

Hi Stranger, leave a comment:

ALLOWED XHTML TAGS:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to Comments