| 198 | } |
| 199 | |
| 200 | void 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 | |
| 208 | static void AddCurveToPath(tgfx::Path* path, float centerX, float centerY, float angleDelta, |
| 209 | float dx1, float dy1, float roundness1, float dx2, float dy2, |
no test coverage detected