Comments (2)
Here is a solution, I can't figure out how to do a pull request across forked repos:
from colour.
Hi, thank you for your report.
It's quite strange this doesn't work. I've tested it extensively under Linux and I know several users of this library that didn't have any issue (and they would have complained since not finding this file will cast exception at import time).
I guess that I didn't test on Mac OSX. And I should have.
Anyway, at first I wanted to keep this file out because it's a file that exists in any X installation in this precise form (and with the same name). But as time passes, I see that keeping this file along the package have been really tedious, and that its not completely supported on all plateforms (this is a nasty flaw of python packaging system I guess). Apart of being tedious to keep, it wasn't so usefull to have this in a separate file.
So I'm willing to integrate your proposition, this would greatly simplify all these. But I have a small request:
The original matching between colornames and their actual hex representation in rgb.txt
is very close to W3C color naming recommandation but it doe not follow it exactly on some subtle points. I would rather see "colour" python module stick to the W3C color naming recommandation in case of divergence. So could you check and replace the divergent values by the W3C one ? It seems a relatively small job if you use the 'color name chart' in http://en.wikipedia.org/wiki/X11_color_names, which would help sport these divergence quite conveniently.
Thank you again for the improvement you suggest.
from colour.
Related Issues (20)
- Maximum recursion depth exceeded while installing from source
- Building from source fails HOT 2
- Using CSS rgb notation with Color rgb argument HOT 1
- RGBA support HOT 1
- Explanation of how to use this package in combination with matplotlib? HOT 2
- Debian packaging in progress HOT 2
- It says no 'No module named dist_info' when running pip install
- add option for shortest path from purple to blue
- lightness based color range when using black or white HOT 1
- ImportError: cannot import name 'Color' from 'colour' (unknown location) HOT 1
- can not import Colour from colour (unknown location) HOT 3
- ImportError: cannot import name 'addstr' from partially initialized module 'culour' (most likely due to a circular import)
- Color('teal') raises Value error
- update the rgb_to_color
- Source install on Slackware autogen.sh failure HOT 3
- d2to1 is deprecated
- Color("lime").rgb returns (0.0, 1.0, 3.3306690738754696e-16) instead of (0.0, 1.0, 0.0) HOT 1
- Collision in package name with colour-science HOT 1
- Lightness vs luminance?
- Can't do linear interpolation? (Feature Request).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colour.