src/hg/hgTracks/hgTracks.h 1.202

1.202 2010/03/25 17:11:08 kent
Adding utility functions to get darker colors. Using one of these to darken text when primary color is too light.
Index: src/hg/hgTracks/hgTracks.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/hgTracks.h,v
retrieving revision 1.201
retrieving revision 1.202
diff -b -B -U 4 -r1.201 -r1.202
--- src/hg/hgTracks/hgTracks.h	5 Mar 2010 05:07:55 -0000	1.201
+++ src/hg/hgTracks/hgTracks.h	25 Mar 2010 17:11:08 -0000	1.202
@@ -525,8 +525,14 @@
 
 Color getSeqColor(char *name, struct hvGfx *hvg);
 /* Return color index corresponding to chromosome/scaffold name. */
 
+Color darkerColor(struct hvGfx *hvg, Color color);
+/* Get darker shade of a color - half way between this color and black */
+
+Color somewhatDarkerColor(struct hvGfx *hvg, Color color);
+/* Get a somewhat lighter shade of a color - 1/3 of the way towards black. */
+
 Color lighterColor(struct hvGfx *hvg, Color color);
 /* Get lighter shade of a color - half way between this color and white */
 
 Color somewhatLighterColor(struct hvGfx *hvg, Color color);