@mzmap/colormap
v0.0.2
Published
create colormap.
Downloads
1
Readme
Colormap
Install
$ npm install @mzmap/colormap --save
Usage
import Colormap from '@mzmap/colormap'
Example
var colormap = new Colormap([
[0, '#000000'],
[5, '#FF00FF'],
[10, '#00FF00']
])
colormap.getColor(2)