19,502
社区成员
发帖
与我相关
我的任务
分享
Shape<3> shape;
PainterRGB888 shapePainter;
shape.setCorner(0, CWRUtil::Q5(25), CWRUtil::Q5(0));
shape.setCorner(1, CWRUtil::Q5(0), CWRUtil::Q5(50));
shape.setCorner(2, CWRUtil::Q5(50), CWRUtil::Q5(50));
//shape.setShape();
shapePainter.setColor(touchgfx::Color::getColorFrom24BitRGB(18, 141, 172));
shape.setPainter(shapePainter);
shape.setPosition(0,0,100,100);
//shape.setXY(0,0);
shape.setWidth(0);
shape.setAlpha(0xaa);
shape.setVisible(true);
//shape.setHeight(100);
shape.setOrigin(25,0);
add(shape);