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

  1. alpha*-Number

    The alpha to convert to hex (0-1)

Return

  1. -String

    The hex string

Example

import { alphaToHex } from '@blackbyte/sugar/color';
alphaToHex(1); // FF

Todo

  • testsnormal