Function
drawKeypoint
(keypoint: Keypoint, ctx: CanvasRenderingContext2D)
Source from the content-addressed store, hash-verified
| 160 | } |
| 161 | |
| 162 | function drawKeypoint(keypoint: Keypoint, ctx: CanvasRenderingContext2D): void { |
| 163 | const circle = new Path2D(); |
| 164 | circle.arc( |
| 165 | keypoint.x, keypoint.y, 4 /* radius */, 0 /* startAngle */, 2 * Math.PI); |
| 166 | ctx.fill(circle); |
| 167 | ctx.stroke(circle); |
| 168 | } |
| 169 | |
| 170 | function drawSkeleton( |
| 171 | keypoints: Keypoint[], skeletonAdjacentPairs: number[][], |
Tested by
no test coverage detected