A module that let you pass in your mouse position and get the color of your position on WebGL using regl.
npm install get-mouse-color-gl
return an array for your mouse color in rgba value.
- [regl] {object} - the Regl instance
- [mouseX] {number} - x position of the mouse
- [mouseY] {number} - y position of the mouse
- [objectArray] {array} - the array of objects you want to render on your scene.