MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / line

Function line

libraries/p5.js:1296–1301  ·  view source on GitHub ↗
(ctx, x1, y1, x2, y2)

Source from the content-addressed store, hash-verified

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

Callers 3

drawMousePositionFunction · 0.85
drawMousePositionFunction · 0.85
ShowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected