Categories

ep.color.hexToRgb()

Categories: Color | Utilities

ep.color.rgbToHex( hex )

Plugin: ep.color

Description: Convert hex color to rgb color format.

  • ep.color.rgbToHex( hex )

    version added: 6.12.0

    hex   A hex color string.

Convert a hex color string to rgba color object.

  • Convert hex color to rgb color format.

    Code:
    ep.color.hexToRgb('#ff7d2c');
    
    Results:
    {
        r:255,
        g:125,
        b:44,
        a:1
    }