(ctx, x1, y1, x2, y2)
| 1294 | |
| 1295 | // Draw a line on the given context from point `x1,y1` to point `x2,y2`. |
| 1296 | function line(ctx, x1, y1, x2, y2) { |
| 1297 | ctx.beginPath(); |
| 1298 | ctx.moveTo(x1, y1); |
| 1299 | ctx.lineTo(x2, y2); |
| 1300 | ctx.stroke(); |
| 1301 | } |
| 1302 | |
| 1303 | exports.line = line; |
| 1304 |
no outgoing calls
no test coverage detected