Function “rgbToHex”

function rgbToHex(color)

Converts a `Color` object to its hexadecimal RGB representation.

Parameters

NameTypeDescription
colorColorThe Color to convert to a hex string