jhanarato / uposatha-inky

Display the uposatha on a Pimoroni Inky display
MIT License
0 stars 0 forks source link

BBox adds 1 to height and width #32

Closed jhanarato closed 1 year ago

jhanarato commented 1 year ago

Not sure why, I forget.

>>> BBox(top=50, left=40, bottom=150, right=180).width
141
>>> BBox(top=50, left=40, bottom=150, right=180).height
101
jhanarato commented 1 year ago

That's what PIL's bounding boxes do, we'll leave it as is.