In case you have a bunch of rect() commands it’s worth using pushStyle() before rectMode(); and then once finished call popStyle() to get rectMode() (or other used styles) back to its previous style:
1 Like