fix hex output
This commit is contained in:
parent
39a6eac196
commit
8013113c98
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@
|
|||
colorBoxEl.setAttribute("style", `--color: rgb(${r}, ${g}, ${b})`);
|
||||
hexEl.innerHTML = `#${(
|
||||
r.toString(16).padStart(2, "0") +
|
||||
b.toString(16).padStart(2, "0") +
|
||||
g.toString(16).padStart(2, "0") +
|
||||
b.toString(16).padStart(2, "0")
|
||||
).toLowerCase()}`;
|
||||
rgbEl.innerHTML = `rgb(${r}, ${g}, ${b})`;
|
||||
|
|
Loading…
Add table
Reference in a new issue