I am trying convert decimal color to hexadecimal.
For example, yellow color is #FFFF00
and there decimal is 16776960
.
How can I convert to hexadecimal ( #FFFF00
) from decimal ( 16776960
) ?
I tried to use this:
color = 16776960
hex(color)
and tried with hex(int(color))