Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-mouse-color-gl

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-mouse-color-gl

Getting mouse position color using regl

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 21 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc