Skip to content

function rgbToHex (shared-side)

Available since version: 0.3.0

Convert rgb color to hex representation.

Declaration

string rgbToHex(int r, int g, int b)

Parameters

  • int r: Red color component in RGB model.
  • int g: Green color component in RGB model.
  • int b: Blue color component in RGB model.

Returns string

Lower case hexadecimal representation of rgb color.