
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
graycolorize
Advanced tools
Replace grayscale with color from a colormap
Usage:
var graycolorize = require('graycolorize');
graycolorize(pixels, colormap);
where pixels is an ndarray of pixels
(e.g., loaded by get-pixels). colormap
is a 256x4 ndarray of RGBA colors for each 256 grayscale colors to replace.
You can create the colormap yourself or call graycolorize.generateMap(hue, saturation) to
generate one for you, with the given hue and saturation (0-1) from minimum to maximum brightness:
var colormap = graycolorize.generateMap(0.25, 0.5);
Example (see demo.js or run npm start):

MIT
FAQs
replace grayscale with color from a colormap
We found that graycolorize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.