ep.color.rgbToHex()
ep.color.rgbToHex( rgb )
Plugin: ep.color
Description: Convert rgb color to hex color format.
-
ep.color.rgbToHex( rgb )
version added: 6.12.0rgb A rgb color object.
Convert a rgb or rgba color object to hex color string.
-
Convert rgb color to hex color format.
Code:
ep.color.rgbToHex({ r:255, g:125, b:44 });
Results:
#ff7d2c