@the-/util-color
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
- global
- module:@the-/util-color
See API Guide for more detail
License
This software is released under the MIT License.