b8180d9f6d41dc708a2f249ba892cbca311e7a06 jcasper Mon Feb 27 11:38:55 2023 -0800 Adding transparency support for colors refs #30569 diff --git src/hg/hgTracks/loweLabTracks.c src/hg/hgTracks/loweLabTracks.c index 06d6f6e..5b9193f 100644 --- src/hg/hgTracks/loweLabTracks.c +++ src/hg/hgTracks/loweLabTracks.c @@ -28,33 +28,33 @@ #define LL_COG_SHADES 26 Color LLshadesOfCOGS[LL_COG_SHADES]; /**** Lowe lab additions ***/ /* RNA Hybridization additions */ #define RNA_HYBRIDIZATION_SHADES 20 Color rnaHybShadesPos[RNA_HYBRIDIZATION_SHADES]; Color rnaHybShadesNeg[RNA_HYBRIDIZATION_SHADES]; int rnaHybShadesInitialized = 0; void rnaHybShadesInit(struct hvGfx *hvg) /* Allocate the LD for positive and negative values, and error cases */ { -static struct rgbColor white = {255, 255, 255}; -static struct rgbColor red = {255, 0, 0}; -static struct rgbColor blue = { 0, 0, 255}; +static struct rgbColor white = {255, 255, 255, 255}; +static struct rgbColor red = {255, 0, 0, 255}; +static struct rgbColor blue = { 0, 0, 255, 255}; hvGfxMakeColorGradient(hvg, &white, &blue, RNA_HYBRIDIZATION_SHADES, rnaHybShadesPos); hvGfxMakeColorGradient(hvg, &white, &red, RNA_HYBRIDIZATION_SHADES, rnaHybShadesNeg); rnaHybShadesInitialized = 1; } void initializeColors(struct hvGfx *hvg) { LLshadesOfCOGS['J'-'A']=hvGfxFindColorIx(hvg, 252, 204,252); LLshadesOfCOGS['A'-'A']=hvGfxFindColorIx(hvg, 252, 220,252); LLshadesOfCOGS['K'-'A']=hvGfxFindColorIx(hvg, 252, 220,236);