New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

iro

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iro

Color class for javascript. Supports RGB, HSL, HSV, CMYK, and alpha channels

latest
Source
npmnpm
Version
0.9.3
Version published
Weekly downloads
12
-7.69%
Maintainers
1
Weekly downloads
 
Created
Source

iro

new iro.Color('hsla(228,80,32,1.0)')
  .o('r',60).o('h',20).o('k',-10).css('hex');

The above example does:

  • Create object from HSLA string
  • Increase red by 60
  • Rorate hue by 20
  • Decrease black by 10
  • Format as HTML HEX format

API documentation: English/Japanese

For Node.js (npm)

Install via npm.

npm install iro --save
const iro = require('iro');
var c = new iro.Color("...");

For Webpages

Download iro.js OR iro.min.js, and add script tag into your HTML.

<script type="text/javascript" src="iro.min.js"></script>

The MIT License (MIT)

This package is provided under the MIT License.

Copyright © 2016 Retorillo

FAQs

Package last updated on 30 Mar 2016

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