Conversions algorithms : remove live code & console.log.

This commit is contained in:
Eric Lavault
2021-10-09 18:15:30 +02:00
parent ab7e51909a
commit 30779682b9
9 changed files with 73 additions and 31 deletions

View File

@ -12,5 +12,10 @@ function RGBToHex (r, g, b) {
return `#${toHex(r)}${toHex(g)}${toHex(b)}`
}
console.log(RGBToHex(255, 255, 255) === '#ffffff')
console.log(RGBToHex(255, 99, 71) === '#ff6347')
export { RGBToHex }
// > RGBToHex(255, 255, 255)
// '#ffffff'
// > RGBToHex(255, 99, 71)
// '#ff6347'