Documentation

hexToDec

converts a hexadecimal color code to the decimal format

number hexToDec(string hex);

Parameters

hexstringthe hexadecimal color code

Returns

numberthe decimal color code

See also

Example

webix.color.hexToDec("ff0066");// -> 16711782

Back to top