Adafruit-GFX-Library icon indicating copy to clipboard operation
Adafruit-GFX-Library copied to clipboard

Add rotated rectangle draw and fill methods

Open BillMerryman opened this issue 1 month ago • 4 comments

These methods implement the ability to draw and fill rectangles rotated by a given angle in degrees.

BillMerryman avatar Nov 07 '25 14:11 BillMerryman

@ladyada for review.

BillMerryman avatar Nov 07 '25 15:11 BillMerryman

thanks! please also add some example to test this code, maybe displaying rotating rectangles - so we can easily verify functionality on platforms/displays :)

ladyada avatar Nov 07 '25 18:11 ladyada

Wasn't sure where you wanted an example, so I placed one in the 'examples' directory in a directory called 'RotatedRectangleTest'. Commented the display-specific code.

BillMerryman avatar Nov 07 '25 19:11 BillMerryman

@ladyada for review.

BillMerryman avatar Nov 11 '25 12:11 BillMerryman