Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython2
/
27cae1f7c57f4959ed11a34f9eec28dde54ffb5a
/
Tools
/
pynche
/
ColorDB.py
5c45805
FILETYPES: Newer XFree86 rgb.txt files use the key Xorg instead of
by Barry Warsaw
· 22 years ago
6c50ae0
De-string-module-ification and other Python 2.x improvements.
by Barry Warsaw
· 23 years ago
0604d72
Lots of changes to support loading alternative color name database.
by Barry Warsaw
· 25 years ago
840a84d
Updated __main__ unit test
by Barry Warsaw
· 26 years ago
b7b1cf0
rrggbb_to_triplet(): When color doesn't start with `#' raise a
by Barry Warsaw
· 26 years ago
a9053f6
Updated docstring.
by Barry Warsaw
· 26 years ago
9f3ea21
all_names(): => unique_names()
by Barry Warsaw
· 26 years ago
8be2594
all_names(): Return just the unique names of rgb colors
by Barry Warsaw
· 26 years ago
7a13418
Changed interface for nearest() method to take individual red, green,
by Barry Warsaw
· 26 years ago
0e3e699
triplet_to_brightness(): New function
by Barry Warsaw
· 26 years ago
a5a018f
Fixed unit test
by Barry Warsaw
· 26 years ago
2e7a320
rrggbb_to_triplet(), triplet_to_rrggbb(): Improvements given by GvR
by Barry Warsaw
· 27 years ago
8d3e5ee
Cache conversions from triplets to rrggbb's and vice versa. Wasteful
by Barry Warsaw
· 27 years ago
2662e15
triplet_to_pmwrgb(): New function
by Barry Warsaw
· 27 years ago
eb9b8af
__init__(): simplify, use tuple as key to __byrgb, lowercase __byname key.
by Barry Warsaw
· 27 years ago
f4562a7
Simplification of conversion routines
by Barry Warsaw
· 27 years ago
9f4d73a
BadColor: new exception class
by Barry Warsaw
· 27 years ago
bfbe67f
Better implementation of nearest(). Not faster, but better
by Barry Warsaw
· 27 years ago
2406b1d
Initial revision
by Barry Warsaw
· 27 years ago