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

Function fixM

libraries/p5.js:29992–30001  ·  view source on GitHub ↗
(path1, path2, a1, a2, i)

Source from the content-addressed store, hash-verified

29990 },
29991
29992 fixM = function(path1, path2, a1, a2, i) {
29993 if (path1 && path2 && path1[i][0] === 'M' && path2[i][0] !== 'M') {
29994 path2.splice(i, 0, ['M', a2.x, a2.y]);
29995 a1.bx = 0;
29996 a1.by = 0;
29997 a1.x = path1[i][1];
29998 a1.y = path1[i][2];
29999 ii = Math.max(p.length, p2 && p2.length || 0);
30000 }
30001 },
30002
30003 pcoms1 = [], // path commands of original path p
30004 pcoms2 = [], // path commands of original path p2

Callers 1

path2curveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected