First page Back Continue Last page Graphics
Rectangle Draw Options
rectMode command:
- rectMode( MODE ) / default = CORNER
- modifies the location where rectangles are drawn
- MODE = CORNER, CORNERS, or CENTER
- CORNER : sets upper left corner to ( x, y )
- CENTER : sets center pt to ( x, y )
- CORNERS : changes values to rectangle( x1, y1, x2, y2 )
- draws upper left to ( x1, y1 ) and lower right to ( x2, y2 )