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

diff --git src/hg/hgc/expClick.c src/hg/hgc/expClick.c
index 066d6e8..c558cad 100644
--- src/hg/hgc/expClick.c
+++ src/hg/hgc/expClick.c
@@ -13,30 +13,31 @@
 #include "cheapcgi.h"
 #include "genePred.h"
 #include "affyAllExonProbe.h"
 #include "microarray.h"
 
 
 /* global flag to indicate if the track is a cancer genomics track */
 boolean isCancerGenomicsTrack = FALSE;
 
 static struct rgbColor getColorForExprBed(float val, float max,
         enum expColorType colorScheme)
 /* Return the correct color for a given score */
 {
 float absVal = fabs(val);
 struct rgbColor color;
+color.a = 255;
 int colorIndex = 0;
 
 /* if log score is -10000 data is missing */
 if (val == -10000)
     {
     color.g = color.r = color.b = 128;
     return(color);
     }
 
 if (absVal > max)
     absVal = max;
 if (max == 0)
     errAbort("ERROR: hgc::getColorForExprBed() maxDeviation can't be zero\n");
 colorIndex = (int)(absVal * 255/max);
 color.r = color.g = color.b = 0;