🎨 EWC Color
ewc.
Convert a Hex string to an ABGR number. Useful for💾 Installation
The package is on the NPM registry as ewc-color
. Simply install it with your NPM client of choice.
🔧 Usage
First, import the module:
const convert =
convert()
takes a hex string in short (#fff
), RGB (#ffffff
) or RGBA (#ffffff20
) forms and returns an ABGR color represented as a decimal number.
📝 Example
// Import the moduleconst convert = const color = // -> 0x20ffffff