How to draw a resizable rectangle?

noob question, but I just begun to work on OF.

I would like to draw a rectangle with draggable corners over a texture to map a portion of an image.

Txs in advance!


have a look at ‘apps/examples/polygonExample’ - maybe this gives you a good startingpoint.