Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coloration-lib

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coloration-lib

[![npm version](https://badge.fury.io/js/coloration-lib.svg)](https://badge.fury.io/js/coloration-lib) [![Downloads](https://img.shields.io/npm/dm/coloration-lib.svg)](https://www.npmjs.com/package/coloration-lib) [![MIT license](https://img.shields.io/ba

  • 0.0.3
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-30%
Maintainers
1
Weekly downloads
 
Created
Source

npm version Downloads MIT license

Coloration

This project was generated with Angular CLI version 7.0.4.

Installation

npm i coloration-lib --save

Requirements

Only for demo:

  • Angular 7.0.0 and more

Demo

See a live demonstation

Usage

Examples

changeLuminosity
import {Coloration} from 'coloration-lib';

const color = new Coloration('red');
color.changeLuminosity(0.55);
console.log(color.toHEX()); // #ff8c8c 
maskColor
const color = new Coloration('red');
color.maskColor('blue', 0.25);
console.log(color.toHEX()); // #bf0040
addColor
const color = new Coloration('red');
color.addColor({
    h: -23,
    v: 10,
});
console.log(color.toHEX()); // #ff3381 

Publishing the library

ng build coloration
cp *.md dist/coloration
cd dist/coloration
npm publish

License

This module is released under the permissive MIT license. Your contributions are always welcome.

FAQs

Package last updated on 22 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc