js-util

Home > rc-js-util > RgbaColorPacker > getHexColorString

RgbaColorPacker.getHexColorString() method

Given a packed color, produce a dom color string like #FF0000.

Signature:

static getHexColorString(value: number): string;

Parameters

Parameter Type Description
value number  

Returns:

string

Remarks

Made up of only 6 components, the alpha channel will be masked out.