JavaScript konvertieren die Nummer in Hex
hexString = yourNumber.toString(16);
Awesomered989
hexString = yourNumber.toString(16);
number = 255
h = parseInt(number, 10).toString(16)
// Result: "ff"
// Add Padding
h = h.padStart(6, "0")
// Result: "0000ff"
yourNumber = parseInt(hexString, 16);