Skip to content

sagunji/color-with-opacity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Mix opacity to a solid color and get a solid equivalent color.

import getSolidColor from "color-with-opacity";

getSolidColor("#FF0000", 0.3) => return #ffb2b2

getSolidColor("#FF0000") => return #ff6666 // by default 0.6 opacity is mixed

getSolidColor("#XXZZCC") => throws error

About

Convert your hex color value with opacity to equivalent color

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published