M5GFX icon indicating copy to clipboard operation
M5GFX copied to clipboard

Draw fillRoundRect

Open yo2ldk opened this issue 1 year ago • 1 comments

how can I use fillRoundRect (x,x,x,x,x) (like in tft_espi, in M5GFX ? if I write, no error on compile, but also no result in display drawing

yo2ldk avatar Jun 16 '24 05:06 yo2ldk

Hello, @yo2ldk Sorry for the late reply.

Please try the following code.

#include <M5GFX.h>

M5GFX gfx;

void setup() {
    gfx.begin();

    int x = 32;
    int y = 32;
    int w = 128;
    int h = 128;
    int r = 20;
    uint32_t color = 0xFFEE33;

    gfx.fillRoundRect(x, y, w, h, r, color);
}

void loop() {}

image

lovyan03 avatar Jul 15 '24 05:07 lovyan03