MCPcopy Create free account
hub / github.com/Tencent/libpag / EllipseToPath

Function EllipseToPath

src/rendering/renderers/ShapeRenderer.cpp:200–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void EllipseToPath(EllipseElement* ellipse, tgfx::Path* path, Frame frame) {
201 auto size = ellipse->size->getValueAt(frame);
202 auto position = ellipse->position->getValueAt(frame);
203 auto rect =
204 tgfx::Rect::MakeXYWH(position.x - size.x * 0.5f, position.y - size.y * 0.5f, size.x, size.y);
205 path->addOval(rect, ellipse->reversed);
206}
207
208static void AddCurveToPath(tgfx::Path* path, float centerX, float centerY, float angleDelta,
209 float dx1, float dy1, float roundness1, float dx2, float dy2,

Callers 1

RenderElements_EllipseFunction · 0.85

Calls 2

MakeXYWHFunction · 0.85
getValueAtMethod · 0.45

Tested by

no test coverage detected