Answers for "hex color code print python"

1

color name to hex python

import matplotlib
print(matplotlib.colors.cnames["blue"])
  --> u'#0000FF'
Posted by: Guest on July-09-2021
1

print hexadecimal in python

print (hex(value))
Posted by: Guest on June-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language