Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

complementary-color

draganradu307ISC1.0.1

Just add a color and you will get a object with the complementary color in the provided format and a hexref with the hex format of the complementary color (for display purpaces).

complementary, color, complementary color, anycolor

readme

Complementary color

Just add a color and you will get a object with the complementary color in the provided format and a hexref with the hex format of the complementary color (for display purpaces).

Install

$ npm install complementary-color

Usage

const complementaryColor = require('complementary-color');

var cmykComplementary = new complementaryColor('c: 0, m: 53, y: 60, k: 60')
// { c: 60, m: 7, y: 0, k: 60 }, hexref: '295F66' }

var htmlComplementary = new complementaryColor('red')
// { color: 'Aqua', hexref: '00FFFF' }

var rgbComplementary = new complementaryColor('r 10 g 50 b 18')
// { r: 50, g: 10, b: 42 }, hexref: '320A2A' }

var ralComplementary = new complementaryColor('RAL 1016')
// { r: 50, g: 10, b: 42 }, hexref: '320A2A' }