Skip to content

tiansijie/get-mouse-color-gl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-mouse-color-gl

A module that let you pass in your mouse position and get the color of your position on WebGL using regl.

usage

npm install get-mouse-color-gl

readPixelAt(regl, mouseX, mouseY, objectArray) => Array

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published