@the-/util-color

Color utility for the-framework

Usage no npm install needed!

<script type="module">
  import theUtilColor from 'https://cdn.skypack.dev/@the-/util-color';
</script>

README

@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