colormap

WebJar for colormap

Лицензия

Лицензия

MIT
Категории

Категории

ORM Данные
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

colormap
Последняя версия

Последняя версия

2.3.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

colormap
WebJar for colormap
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/bpostlethwaite/colormap

Скачать colormap

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/colormap/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>colormap</artifactId>
    <version>2.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/colormap/
implementation 'org.webjars.npm:colormap:2.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/colormap/
implementation ("org.webjars.npm:colormap:2.3.1")
'org.webjars.npm:colormap:jar:2.3.1'
<dependency org="org.webjars.npm" name="colormap" rev="2.3.1">
  <artifact name="colormap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='colormap', version='2.3.1')
)
libraryDependencies += "org.webjars.npm" % "colormap" % "2.3.1"
[org.webjars.npm/colormap "2.3.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : lerp jar [1.0.3,2)

Модули Проекта

Данный проект не имеет модулей.

colormap Build Status

all colormap output

Usage

npm install colormap

let colormap = require('colormap')

let colors = colormap({
    colormap: 'jet',
    nshades: 10,
    format: 'hex',
    alpha: 1
})

API

list = colormap(options?)

Property Default Meaning
colormap 'jet' Color map name from the image above or a custom color scale — a sequence of {index, rgb} objects, where index is 0..1 number and rgb is a length 3/4 array with values for the color stop.
nshades 72 Number of colors in returned array, the minimum number depends on colormap.
format 'hex' 'hex' for #aabbcc, 'rgbaString' for rgba(255, 255, 255, 1), 'rba' for [255, 255, 255, 1], 'float' for [1, 1, 1, 1].
alpha 1 Alpha range, can be an array with alpha values or just 2 values for start/end colors.

Credits

Color maps are inspired by matplotlib color scales, cmocean oceanographic colormaps, cosine gradients and others. Thanks to authors of these libs for their invaluable work.

Версии библиотеки

Версия
2.3.1
2.3.0