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

Function fixArc

libraries/p5.js:29978–29990  ·  view source on GitHub ↗
(pp, i)

Source from the content-addressed store, hash-verified

29976 },
29977
29978 fixArc = function(pp, i) {
29979 if (pp[i].length > 7) {
29980 pp[i].shift();
29981 var pi = pp[i];
29982 while (pi.length) {
29983 pcoms1[i] = 'A';
29984 if (p2) { pcoms2[i] = 'A'; }
29985 pp.splice(i++, 0, ['C'].concat(pi.splice(0, 6)));
29986 }
29987 pp.splice(i, 1);
29988 ii = Math.max(p.length, p2 && p2.length || 0);
29989 }
29990 },
29991
29992 fixM = function(path1, path2, a1, a2, i) {
29993 if (path1 && path2 && path1[i][0] === 'M' && path2[i][0] !== 'M') {

Callers 1

path2curveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected