mirror of
				https://github.com/larstvei/Focus.git
				synced 2025-10-31 08:10:13 +00:00 
			
		
		
		
	Cleaned up doc in `focus-average-colors'
This commit is contained in:
		
							parent
							
								
									497d13d758
								
							
						
					
					
						commit
						284a1240ce
					
				
							
								
								
									
										5
									
								
								focus.el
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								focus.el
									
									
									
									
									
								
							| @ -96,7 +96,10 @@ Things that are defined include `symbol', `list', `sexp', | ||||
|     (bounds-of-thing-at-point thing))) | ||||
| 
 | ||||
| (defun focus-average-colors (color &rest colors) | ||||
|   "Takes one or more COLORS and returns the average of the RGB-values." | ||||
|   "Takes an average of the colors given by argument. | ||||
| Argument COLOR is a color name, and so are the COLORS; COLOR is | ||||
| there to ensure that the the function receives at least one | ||||
| argument." | ||||
|   (let* ((colors (cons color colors)) | ||||
|          (colors (mapcar 'color-name-to-rgb colors)) | ||||
|          (len    (length colors)) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user