quadrant support on fillSmoothRoundRect #2333
-
Just stumbled across the latest update with the anti-aliasing arc support, makes such a difference 👍but have a little feature request. I noticed on I'm trying to make a tab style shape (top corners round with bottom square). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That quadrant support capability is not fully tested yet and some tweaks are needed for corner cases, but setting the inner radius to 1 and the height to 2* radius should work with the existing function. Example: tft.drawSmoothRoundRect(x, y, radius, 1, w, 2*radius, TFT_WHITE, TFT_BLACK, 0x3); |
Beta Was this translation helpful? Give feedback.
That quadrant support capability is not fully tested yet and some tweaks are needed for corner cases, but setting the inner radius to 1 and the height to 2* radius should work with the existing function. Example:
tft.drawSmoothRoundRect(x, y, radius, 1, w, 2*radius, TFT_WHITE, TFT_BLACK, 0x3);