1.3.0 • Published 3 years ago

hex-alpha v1.3.0

Weekly downloads
333
License
MIT
Repository
-
Last release
3 years ago

HEX-ALPHA

A really simple package that enables you to specify an opacity for your HEX colours.

HEX + Alpha = RGBA

Installation

npm install hex-alpha
// or
yarn add hex-alpha

Examples

import hexAlpha from "hex-alpha";

hexAlpha("#fa6d01", 0.1);
// returns "rgba(250,109,1,0.1)"

hexAlpha("#000000", 1);
// returns "rgba(0,0,0,1)"

hexAlpha("#f00");
// returns "rgb(255,0,0)"

Meetup talk

I gave a talk about making HEX-Alpha at the Sydney Javascript meetup - SydJS. Check it out here.

1.2.0

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.3.0

3 years ago

1.0.3

3 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago