June 2012
Beginner
376 pages
8h 32m
English
We can go now to the offscreen buffer and read the color from the coordinates that we clicked on the canvas.

WebGL allows us to read back from a framebuffer using the readPixels function. As usual, having gl as the WebGL context variable:
|
Function |
Description |
|---|---|
|
|
|
Read now
Unlock full access