shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
alphaToHex
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.color
Take alpha (0-1) and convert it to hex like “FF”, “80”, etc…
Params
- alpha*-Number
The alpha to convert to hex (0-1)
Return
- -String
The hex string
Example
import { alphaToHex } from '@blackbyte/sugar/color';
alphaToHex(1); // FFTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space