Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw fillRoundRect #96

Open
yo2ldk opened this issue Jun 16, 2024 · 1 comment
Open

Draw fillRoundRect #96

yo2ldk opened this issue Jun 16, 2024 · 1 comment

Comments

@yo2ldk
Copy link

yo2ldk commented Jun 16, 2024

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

@lovyan03
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants