Feature request: Function to convert to floats from 0 to 1
paulmelnikow opened this issue · comments
Paul Melnikow commented
Hi there! And thanks for this useful library!
I'm using this with pycollada, which wants RGB values as arrays of three floats from 0.0 to 1.0.
Would you be interested in a pull request to a function for exposing color values as rgb floats?
James Bennett commented
This module really only does the RGB formats of the HTML/CSS specs, and I'm unaware of any such format in one of those specs.
Paul Melnikow commented
Right. However, worth noting that WebGL uses them.
bersbersbers commented
I would love this, too. This is easily the best colors library I know for Python, and I feel it's somewhat artificial to restrict its use for the web.