@the-/util-color

16.1.1 • Public • Published

@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.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/util-color

Weekly Downloads

10

Version

16.1.1

License

MIT

Unpacked Size

46.2 kB

Total Files

21

Last publish

Collaborators

  • okunishinishi