Drawing modes of rectangles and ellipsis
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









No Comments on "Drawing modes of rectangles and ellipsis"