b8180d9f6d41dc708a2f249ba892cbca311e7a06
jcasper
  Mon Feb 27 11:38:55 2023 -0800
Adding transparency support for colors refs #30569

diff --git src/hg/hgTracks/cgapSageTrack.c src/hg/hgTracks/cgapSageTrack.c
index af90c1b..a102ab5 100644
--- src/hg/hgTracks/cgapSageTrack.c
+++ src/hg/hgTracks/cgapSageTrack.c
@@ -285,31 +285,31 @@
 /* This will go from white to darker red. */
 
 static Color cgapSageItemColor(struct track *tg, void *item, struct hvGfx *hvg)
 /* Return color to draw CGAP SAGE item */
 {
 struct linkedFeatures *thisItem = item;
 return cgapShadesOfRed[thisItem->grayIx];
 }
 
 void cgapSageDrawItems(struct track *tg, 
         int seqStart, int seqEnd,
         struct hvGfx *hvg, int xOff, int yOff, int width, 
         MgFont *font, Color color, enum trackVisibility vis)
 /* Initialize the colors, then do the normal drawing. */
 {
-static struct rgbColor lowerColor = {205, 191, 191};
-static struct rgbColor cgapRed = {205, 0, 0};
+static struct rgbColor lowerColor = {205, 191, 191, 255};
+static struct rgbColor cgapRed = {205, 0, 0, 255};
 hvGfxMakeColorGradient(hvg, &lowerColor, &cgapRed, 10, cgapShadesOfRed);
 genericDrawItems(tg, seqStart, seqEnd, hvg, xOff, yOff, width, font, color, vis);
 }
 
 void cgapSageMethods(struct track *tg)
 /* Make track for simple repeats. */
 {
 linkedFeaturesMethods(tg);
 tg->loadItems = cgapSageLoadItems;
 tg->itemColor = cgapSageItemColor;
 tg->drawItems = cgapSageDrawItems;
 tg->mapItemName = cgapSageMapItemName;
 tg->mapItem = cgapSageMapItem;
 }