cordlr-color

0.1.2 • Public • Published

cordlr-color NPM version

Given hex/rgb/hsl/etc. color codes, message an PNG image of them

It supports anything SVG's fill would.

Installation

$ npm install --save cordlr-color

Usage

color <...codes> [--background <code>]

Example:

color #FFF
color #0F0F00 'rgba(0, 244, 100, 0.5)'
color 'rgba(0,0,0,0.8)' --background=red

Config

{
  "color": {
    "background": "#FFF", // default background color
    "max": 6, // The most colors someone can input
    "tmpdir": <dynamic>, // The place to store SVG and PNG files, defaults to your OS's tmpdir
  }
}

Allowing infinite colors:

"max": "Infinity"

Using a transparent default background:

"background": "rgba(255, 0, 0, 0.2)"

License

MIT © Jamen Marz

Readme

Keywords

Package Sidebar

Install

npm i cordlr-color

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • npm