vaab / colour

Python color representations manipulation library (RGB, HSL, web, ...)
BSD 2-Clause "Simplified" License
319 stars 41 forks source link

RGBA support #42

Open aaroncraig10e opened 6 years ago

aaroncraig10e commented 6 years ago

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.

vaab commented 6 years ago

There are 2 different problems here:

Thank you for your suggestion, adding the support of these is a good idea.