Solved
please fix the bug in code generated by touchgfx
when I try to change colour it generates
//Interaction3
//When button1 clicked change color of shape1
//Set RGB color R:222, G:196, B:28 on shape1
shape1.setColor(touchgfx::Color::getColorFrom24BitRGB(222,196,28));
shape1.invalidate();
instead of
shape1Painter.setColor(touchgfx::Color::getColorFrom24BitRGB(222,196,28));
shape1.invalidate();
it is the latest touchgfx 4.13.0
