Convert RGBA to hex color. (e.g. rgbaToHex([255, 0, 0, 255, 255, 128, 0, 128]) -> ["#FF0000", "#FF800080"])
rgbaToHex([255, 0, 0, 255, 255, 128, 0, 128])
["#FF0000", "#FF800080"]
An array of RGBA values.
Optional
Whether to always include the alpha channel in the output.
Whether to allow short hex output.
An array of hex color strings. (e.g. "#FF0000")
"#FF0000"
Convert RGBA to hex color. (e.g.
rgbaToHex([255, 0, 0, 255, 255, 128, 0, 128])->["#FF0000", "#FF800080"])