Categories

ep.color.hexToHsb()

Categories: Color | Utilities

ep.color.rgbToHsb( hex )

Plugin: ep.color

Description: Convert hex color to hsb color format.

  • ep.color.rgbToHsb( hex )

    version added: 6.12.0

    hex   A hex color string.

Convert a hex color string to hsb color object.

  • Convert hex color to hsb color format.

    Code:
    ep.color.hexToHsb('#ff7d2c');
    
    Results:
    {
        h:23,
        s:83,
        b:100
    }