shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
rgba2hex
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.color
RGBA to HEX
Params
- r*-Number|String|Object
The red value between 0-255 or an object representing r, g, b, a or a string representing the rgba(…) color
- g*-Number
The green value between 0-255
- b*-Number
The blue value between 0-255
- a*-Number
The alpha value between 0-100|0-1
Return
- -string
The hex string representation like #ff004f
Example
import { rgbaToHex } from '@blackbyte/sugar/color';
rgbaToHex(10,20,30,10);Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space