JSPM

complementary-color

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 56
  • Score
    100M100P100Q87340F
  • License ISC

Package Exports

  • complementary-color

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (complementary-color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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' }