prenticedavid / MCUFRIEND_kbv

MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields
Other
363 stars 181 forks source link

Angle parameter for rectangles... #159

Closed AntonioFromBrazil closed 3 years ago

AntonioFromBrazil commented 3 years ago

David, what about implement a angle parameter for drawRect and fillRect functions ? I know it is not easy specially in fillRect but it will be very usefull... Tks, Antonio

prenticedavid commented 3 years ago

I inherit Graphics methods from Adafruit_GFX. I do not want to add any other basic methods.

You can draw any quadrilateral with two trangles.

The only possible candidate for extra methods would be arc() and filledArc()

David.

AntonioFromBrazil commented 3 years ago

Two inverted triangles is a cure for my headache !!! Thanks for simple and great idea !!!