+ 3

HOW we can convert the Colour name into Haxadecimal Value?

For example black colour hava #000000 decimal value...

11th Oct 2020, 8:13 AM
Zeroboy
Zeroboy - avatar
5 Answers
+ 6
Go to this website and you will understand everything https://htmlcolorcodes.com/
11th Oct 2020, 8:16 AM
</๐šœ๐šŒ๐š˜๐š›๐š™๐š’๐š˜๐š—>
</๐šœ๐šŒ๐š˜๐š›๐š™๐š’๐š˜๐š—> - avatar
+ 5
Use a dictionary (sometimes called an object). Or, you could use JS to display that colour on a hidden canvas, then get the image data and convert to hexadecimal. If you want to learn more about the latter, ask and I can assist. Happy coding!
11th Oct 2020, 8:18 AM
Rowsej
Rowsej - avatar
+ 1
Zeroboy you are welcome ๐Ÿ˜Š
11th Oct 2020, 8:17 AM
</๐šœ๐šŒ๐š˜๐š›๐š™๐š’๐š˜๐š—>
</๐šœ๐šŒ๐š˜๐š›๐š™๐š’๐š˜๐š—> - avatar