(x, y)
| 442 | } |
| 443 | |
| 444 | _getPixel(x, y) { |
| 445 | let imageData, index; |
| 446 | imageData = this.drawingContext.getImageData(x, y, 1, 1).data; |
| 447 | index = 0; |
| 448 | return [ |
| 449 | imageData[index + 0], |
| 450 | imageData[index + 1], |
| 451 | imageData[index + 2], |
| 452 | imageData[index + 3] |
| 453 | ]; |
| 454 | // return Renderer2D.prototype._getPixel.apply(this, args); |
| 455 | } |
| 456 | |
| 457 | /** |
| 458 | * Sets the color of one or more pixels within an image. |