1.0.0 • Published 2 months ago

complimentary-color v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

complimentary-color

Get the complementary color to any given color.

Installation

npm i complimentary-color

for modern JavaScript projects using ESM:

import compliColor from 'complimentary-color';

Using traditional method for Node.js projects that follow the CommonJS module system:

const compliColor = require('complimentary-color');

Usage

  • Get Complimentary Color in RGB
console.log(compliColor.process("rgb(113,256,228)"));
// returns - rgb(256,113,141)
  • Get Complimentary Color in HSL
console.log(compliColor.process("hsl(120,50%,50%)"));
// returns - hsl(300,50.00%,50.00%)
  • Get Complimentary Color in HEX
console.log(compliColor.process("#ff00ff"));
// returns - #00ff0