Open stemyke opened 3 years ago
@farfromrefug And I think actually the pointCount variable should be treated as actual count of x,y points, not the separated numeric values.
pointCount = Math.floor(pointCount || (src.length / 2));
for (let index = 0; index < pointCount; index++) {
const cgPoint = CGPointApplyAffineTransform(CGPointMake(src[index + srcIndex], src[index + srcIndex + 1]), this._transform);
pts[index * 2 + dstIndex] = cgPoint.x;
pts[index * 2 + dstIndex + 1] = cgPoint.y;
}
@farfromrefug Can you please modify the function this way in canvas.ios.ts?