ep.color.hexToHsb()
ep.color.rgbToHsb( hex )
Plugin: ep.color
Description: Convert hex color to hsb color format.
-
ep.color.rgbToHsb( hex )
version added: 6.12.0hex 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 }