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