Socket
Socket
Sign inDemoInstall

colormap

Package Overview
Dependencies
1
Maintainers
24
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.3.1

10

index.js

@@ -17,9 +17,5 @@ /*

*/
var indicies, rgba, fromrgba, torgba,
var indicies, fromrgba, torgba,
nsteps, cmap, colormap, format,
nshades, colors, alpha, index, i,
r = [],
g = [],
b = [],
a = [];
nshades, colors, alpha, i;

@@ -50,3 +46,3 @@ if ( !spec ) spec = {};

if (cmap.length > nshades) {
if (cmap.length > nshades + 1) {
throw new Error(

@@ -53,0 +49,0 @@ colormap+' map requires nshades to be at least size '+cmap.length

{
"name": "colormap",
"version": "2.3.0",
"version": "2.3.1",
"description": "Great looking color maps",

@@ -5,0 +5,0 @@ "author": "bpostlethwaite",

@@ -13,3 +13,3 @@ # colormap [![Build Status](https://travis-ci.org/bpostlethwaite/colormap.png)](https://travis-ci.org/bpostlethwaite/colormap)

let colors = colormap({
colormap: 'jet'
colormap: 'jet',
nshades: 10,

@@ -16,0 +16,0 @@ format: 'hex',

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc