(canvasX, canvasY)
| 637 | } |
| 638 | |
| 639 | function readPixel(canvasX, canvasY) { |
| 640 | regl.read({ |
| 641 | x: canvasX, |
| 642 | y: canvasY, |
| 643 | width: 1, |
| 644 | height: 1, |
| 645 | data: dataPixel |
| 646 | }); |
| 647 | return dataPixel; |
| 648 | } |
| 649 | |
| 650 | function readPixels(canvasX, canvasY, width, height) { |
| 651 | var pixelArray = new Uint8Array(4 * width * height); |
no outgoing calls
no test coverage detected
searching dependent graphs…