npm.io
16.1.1 • Published 5 years ago

@the-/util-color

Licence
MIT
Version
16.1.1
Deps
1
Size
45 kB
Vulns
0
Weekly
0
Stars
5

@the-/util-color

npm Version

Color utility for the-framework

Installation

$ npm install @the-/util-color --save

Usage

'use strict'

const { colorWithAlpha } = require('@the-/util-color')

async function tryExample() {
  console.log(colorWithAlpha('#AAA', 0.5)) // -> rgba(170, 170, 170, 0.5)
}

tryExample().catch((err) => console.error(err))

API Guide

See API Guide for more detail

License

This software is released under the MIT License.

Keywords