colour icon indicating copy to clipboard operation
colour copied to clipboard

RGBA support

Open aaroncraig10e opened this issue 8 years ago • 1 comments

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.

aaroncraig10e avatar Dec 07 '17 22:12 aaroncraig10e

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.

vaab avatar Dec 08 '17 00:12 vaab