cetz icon indicating copy to clipboard operation
cetz copied to clipboard

Add alternative ways to draw a rectangle

Open fenjalien opened this issue 1 year ago • 1 comments

We currently allow rectangles to be drawn by specifying their top left and bottom right coordinates. This technically also allows the top left coordiante and the width and height to be specified as well.

It would be better to allow different ways to specify a rectangle, Processing allows the following:

  • CORNER: upper left corner and width/height
  • CORNERS: upper left and bottom right (what we do at the moment)
  • CENTER: center and width/height

fenjalien avatar Aug 07 '24 19:08 fenjalien

With 0.4.2 we will have rect-around to draw a rect around a set of coordinates (a bounding box).

johannes-wolf avatar Sep 03 '25 17:09 johannes-wolf