WebGL Color Pick: readPixels()
Tap the Canvas to Select a Color from the 3D Scene
Swipe to View the Landscape and Move the Sprites
Swipe to view the background. Sprite shapes move off into the distance, then back again. Both the environment and sprite colors are stored in one texture.
Call the WebGL method
Read the color under the mouse or touch point.
See more WebGL tutorials.