Drawing Graphics on a SSD1283A Display

I am trying to fill a rounded rectangle on an SSD1283A display driven by LCDWIKI_GUI.h.

The display correctly draws a rectangle with a black boarder line:

   //  Set the line color to YELLOW

   mylcd.Set_Draw_color (BLACK); 

   //  Draw the small rounded rectangle
   
   mylcd.Draw_Round_Rectangle (1,2,127,35,6);
   mylcd.Draw_Round_Rectangle (2,3,126,34,6);

What command do I use to fill this rectangle with a BLUE color?

Please provide a link to the library documentation.

perhaps

void Fill_Round_Rectangle(int16_t x1, int16_t y1, int16_t x2,int16_t y2, int16_t radius);

after setting the drawing color to BLUE.

https://github.com/lcdwiki/LCDWIKI_gui

Close

mylcd.Fill_Round_Rectangle(1,2,127,35,6)

worked just fine after setting the draw color to BLUE

Thank You!

I was just pointing out the function declaration, not the actual code.

I understand. I had tried all sorts of variations of the code to fill the rounded rectangle, but this command worked.

Thank you

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.