It should be renamed 'uglier' or 'obfusticate'
const normals = [
-1, -1, -1,
1, -1, -1,
-1, 1, -1,
1, 1, -1,
-1, 1, 1,
1, 1, 1,
];
const positions = [
-1, -1, 0,
1, -1, 0,
-1, -1, 0,
-1, -1, 0,
1, -1, 0,
1, 1, 0,
]
ctx.drawImage(
image,
srcX, srcY, srcWidth, srcHeight,
dstX, dstY, dstWidth, dstHeight,
)
becomes
const normals = [-1, -1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1];
const positions = [
-1,
-1,
0,
1,
-1,
0,
-1,
-1,
0,
-1,
-1,
0,
1,
-1,
0,
1,
1,
0,
];
ctx.drawImage(
image,
srcX,
srcY,
srcWidth,
srcHeight,
dstX,
dstY,
dstWidth,
dstHeight
);
Those are less pretty and useful info is lost.