(
keypoints: Keypoint[], ctx: CanvasRenderingContext2D,
skeletonAdjacentPairs: number[][], color: string)
| 187 | } |
| 188 | |
| 189 | function draw( |
| 190 | keypoints: Keypoint[], ctx: CanvasRenderingContext2D, |
| 191 | skeletonAdjacentPairs: number[][], color: string) { |
| 192 | ctx.fillStyle = color; |
| 193 | ctx.strokeStyle = color; |
| 194 | |
| 195 | for (const keypoint of keypoints) { |
| 196 | drawKeypoint(keypoint, ctx); |
| 197 | } |
| 198 | drawSkeleton(keypoints, skeletonAdjacentPairs, ctx, color); |
| 199 | } |
no test coverage detected