febf91199af19b2223017f603e55b758d7a1929d kate Wed Apr 27 09:52:54 2016 -0700 Correct comment. diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index aafd7a1..b8f241c 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -300,31 +300,31 @@ int colorTotal = rgbColor.r + 2*rgbColor.g + rgbColor.b; return colorTotal >= 512; } Color darkerColor(struct hvGfx *hvg, Color color) /* Get darker shade of a color - half way between this color and black */ { struct rgbColor rgbColor = hvGfxColorIxToRgb(hvg, color); rgbColor.r = ((int)rgbColor.r)/2; rgbColor.g = ((int)rgbColor.g)/2; rgbColor.b = ((int)rgbColor.b)/2; return hvGfxFindColorIx(hvg, rgbColor.r, rgbColor.g, rgbColor.b); } Color somewhatDarkerColor(struct hvGfx *hvg, Color color) -/* Get a somewhat lighter shade of a color - 1/3 of the way towards black. */ +/* Get a somewhat darker shade of a color - 1/3 of the way towards black. */ { struct rgbColor rgbColor = hvGfxColorIxToRgb(hvg, color); rgbColor.r = (2*(int)rgbColor.r)/3; rgbColor.g = (2*(int)rgbColor.g)/3; rgbColor.b = (2*(int)rgbColor.b)/3; return hvGfxFindColorIx(hvg, rgbColor.r, rgbColor.g, rgbColor.b); } Color lighterColor(struct hvGfx *hvg, Color color) /* Get lighter shade of a color - half way between this color and white */ { struct rgbColor rgbColor = hvGfxColorIxToRgb(hvg, color); rgbColor.r = (rgbColor.r+255)/2; rgbColor.g = (rgbColor.g+255)/2; rgbColor.b = (rgbColor.b+255)/2;