Lines Matching refs:points
133 // points is a 1d array of length 2n representing n points where the even indices
136 CanvasKit.Path.prototype.addPoly = function(points, close) {
137 var ptr = copy1dArray(points, 'HEAPF32');
138 this._addPoly(ptr, points.length / 2, close);
139 freeArraysThatAreNotMallocedByUsers(ptr, points);
156 CanvasKit.Path.prototype.addVerbsPointsWeights = function(verbs, points, weights) {
158 var pointsPtr = copy1dArray(points, 'HEAPF32');
161 this._addVerbsPointsWeights(verbsPtr, verbs.length, pointsPtr, points.length,
164 freeArraysThatAreNotMallocedByUsers(pointsPtr, points);
662 throw 'Need 12 cubic points';
696 // points is a 1d array of length 2n representing n points where the even indices
699 CanvasKit.Canvas.prototype.drawPoints = function(mode, points, paint) {
701 var ptr = copy1dArray(points, 'HEAPF32');
702 this._drawPoints(mode, ptr, points.length / 2, paint);
703 freeArraysThatAreNotMallocedByUsers(ptr, points);