Modifies the location from which rectangles are drawn by changing the way in which parameters given to rect() are interpreted. The default mode is rectMode(CORNER) , which interprets the first two parameters of rect() as the upper-left corner of the shape, while the
(int mode)
| 11413 | * @see PGraphics#rect(float, float, float, float) |
| 11414 | */ |
| 11415 | public void rectMode(int mode) { |
| 11416 | if (recorder != null) recorder.rectMode(mode); |
| 11417 | g.rectMode(mode); |
| 11418 | } |
| 11419 | |
| 11420 | |
| 11421 | /** |