hexToRgba

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.color

Hex to RGBA

Params

  1. hex*-string

    The hex string to convert

Return

  1. -object

    The rgba object representation with a “toString” method

Example

import { hexToRgba } from '@blackbyte/sugar/color';
hexToRgba('#ff00ff');

Todo

  • testsnormal