hslToRgba

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

HSL to RGBA

Params

  1. h*-Number|String|Object

    The hue value between 0-360 an object representing h, s, l, (a) or a string representing the hsla(…) color

  2. s*-Number

    The saturation value between 0-100|0-1

  3. l*-Number

    The luminence value between 0-100|0-1

  4. a*-Number

    The alpha value between 0-100|0-1

Return

  1. -object

    The rgba object representation with a “toString” method

Example

import { hslToRgba } from '@blackbyte/sugar/color';
hslToRgba(10,20,30);

Todo

  • testsnormal