Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								5c458052f0 
								
							 
						 
						
							
							
								
								FILETYPES: Newer XFree86 rgb.txt files use the key Xorg instead of  
							
							 
							
							... 
							
							
							
							XConsortium.  Now we can recognize these files! 
							
						 
						
							2002-10-21 14:25:24 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								6c50ae0801 
								
							 
						 
						
							
							
								
								De-string-module-ification and other Python 2.x improvements.  
							
							 
							
							
							
						 
						
							2001-07-10 21:38:47 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								0604d72318 
								
							 
						 
						
							
							
								
								Lots of changes to support loading alternative color name database.  
							
							 
							
							... 
							
							
							
							You can switch database by just loading the new one; the list window
and nearest colors adapt to the new database.
Some reorganizing of code.  Also, the name of the database file is
stored in the ~/.pynche pickle.  If it can't be loaded, fallbacks are
used. 
							
						 
						
							1999-04-26 23:17:16 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								840a84d37a 
								
							 
						 
						
							
							
								
								Updated __main__ unit test  
							
							 
							
							
							
						 
						
							1998-10-15 02:18:08 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								b7b1cf0088 
								
							 
						 
						
							
							
								
								rrggbb_to_triplet(): When color doesn't start with `#' raise a  
							
							 
							
							... 
							
							
							
							BadColor exception. 
							
						 
						
							1998-10-06 18:10:59 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								a9053f65de 
								
							 
						 
						
							
							
								
								Updated docstring.  
							
							 
							
							
							
						 
						
							1998-10-02 16:01:42 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								9f3ea211dd 
								
							 
						 
						
							
							
								
								all_names(): => unique_names()  
							
							 
							
							... 
							
							
							
							aliases_of(): New method 
							
						 
						
							1998-10-02 15:59:20 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								8be2594a24 
								
							 
						 
						
							
							
								
								all_names(): Return just the unique names of rgb colors  
							
							 
							
							
							
						 
						
							1998-10-02 14:43:30 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								7a13418e12 
								
							 
						 
						
							
							
								
								Changed interface for nearest() method to take individual red, green,  
							
							 
							
							... 
							
							
							
							blue values instead of tuple 
							
						 
						
							1998-09-29 20:03:15 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								0e3e699178 
								
							 
						 
						
							
							
								
								triplet_to_brightness(): New function  
							
							 
							
							
							
						 
						
							1998-09-28 23:39:18 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								a5a018fbd4 
								
							 
						 
						
							
							
								
								Fixed unit test  
							
							 
							
							
							
						 
						
							1998-09-25 22:51:36 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								2e7a32046b 
								
							 
						 
						
							
							
								
								rrggbb_to_triplet(), triplet_to_rrggbb(): Improvements given by GvR  
							
							 
							
							
							
						 
						
							1998-02-18 17:01:12 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								8d3e5ee552 
								
							 
						 
						
							
							
								
								Cache conversions from triplets to rrggbb's and vice versa.  Wasteful  
							
							 
							
							... 
							
							
							
							on space, but improves performance.  Also use map to calculate
triplet_to_pmwrgb(). 
							
						 
						
							1998-02-18 00:02:26 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								2662e15f58 
								
							 
						 
						
							
							
								
								triplet_to_pmwrgb(): New function  
							
							 
							
							
							
						 
						
							1998-02-13 21:27:56 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								eb9b8af8fc 
								
							 
						 
						
							
							
								
								__init__(): simplify, use tuple as key to __byrgb, lowercase __byname key.  
							
							 
							
							... 
							
							
							
							find_byrgb(): Changed name, interface (takes a tuple), and return
value
find_byname(): lowercase color name 
							
						 
						
							1998-02-11 18:55:37 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								f4562a7a0a 
								
							 
						 
						
							
							
								
								Simplification of conversion routines  
							
							 
							
							
							
						 
						
							1998-02-11 17:19:23 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								9f4d73a9cf 
								
							 
						 
						
							
							
								
								BadColor: new exception class  
							
							 
							
							... 
							
							
							
							rrggbb_to_triplet(): New utility function 
							
						 
						
							1998-01-31 23:38:48 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								bfbe67f47f 
								
							 
						 
						
							
							
								
								Better implementation of nearest().  Not faster, but better  
							
							 
							
							
							
						 
						
							1998-01-31 00:32:07 +00:00  
						
						
							 
							
							
							
								 
							 
							
							
								 
							 
							
						 
					 
				
					
						
							
								
								
									 
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								2406b1d40a 
								
							 
						 
						
							
							
								
								Initial revision  
							
							 
							
							
							
						 
						
							1998-01-31 00:29:41 +00:00