colour
colour copied to clipboard
RGBA support
CSS spec defined an RGBA color specification: https://www.w3.org/wiki/CSS3/Color/RGBA
However, passing a value like 'rgba(0, 0, 0, 1)' results an the error:
ValueError: 'rgba(0,0,0,1)' is not a recognized color.
This makes storing values that are intended for use in stylesheets impossible without doing unnecessary conversion.
There are 2 different problems here:
- no support for alpha channel yet in Colour.
- no support of full CSS3 specification, but only:
- named colour like "red", "blue"...
- short and long hexadecimal ("#fa3bed" or "#f00")
Thank you for your suggestion, adding the support of these is a good idea.