TouchGFX Change Color of a Circle
I apologize if this is a very simple question, but I can't seem to figure out how to change the color of a Circle in my TouchGFX project.
I know that for a Box, I can do something like...
box1.setColor(touchgfx::Color::getColorFrom24BitRGB(0, 0, 255));
box1.invalidate();I would like to do the equivalent but for a Circle, however there is no setColor() method.
I understand that Circles have something called a painter, which allows me to do...
circle1Painter.setColor(touchgfx::Color::getColorFrom24BitRGB(0, 0, 255);...but I do not know how to re-draw the circle with the updated painter.
I've tried...
circle1.setPainter(circle1Painter);
const Rect rect(0, 0, circle1.getWidth(), circle1.getHeight());
circle1.drawCanvasWidget(rect);
circle1.invalidate();but this did not work.
I appreciate any advice you can provide.