
A color spectrum representing air temperature
Summary
Provides a function which returns a reasonable color (in CSS hex format) for the relative air temperature.
For Node.js & browsers.
Install
Yarn (preferred)
$ yarn add the-color-of-air
npm
$ npm install the-color-of-air --save
Usage
This library is exported as a UMD bundle.
ES2015+
; // fahrenheit; // #0772b8 "french blue"; // #dd531e "flame" // celsius; // #c53600 "mahogany" // curryconst colorOfFahrenheit = ;; // #d1c9df "languid lavender" // raw array;colorList2; // #a496c0 "amethyst smoke"
Node.js
const colorOfAir = ;// etc
Browser
<!-- latest minified version -->
Swatches
Swatches in various formats are available in the swatches/ directory.
These files are not published to the npm registry.
Notes
These colors are pulled from AccuWeather's radar maps.
License
Copyright 2017, Christopher Hiller. Licensed Apache-2.0.