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

diff --git src/hg/inc/hvGfx.h src/hg/inc/hvGfx.h
index aa67386..689eb7d 100644
--- src/hg/inc/hvGfx.h
+++ src/hg/inc/hvGfx.h
@@ -268,30 +268,37 @@
  * Return max y value. Optionally draw curve as dashed line.
  * Adapted trivially from code posted at http://members.chello.at/~easyfilter/bresenham.html
  * Author: Zingl Alois, 8/22/2016 */
 {
 x1 = hvGfxAdjXX(hvg, x1, &x2, &y1, &y2);
 return vgCurve(hvg->vg, x1, y1, x2, y2, x3, y3, color, isDashed);
 }
 
 INLINE int hvGfxFindColorIx(struct hvGfx *hvg, int r, int g, int b)
 /* Find color in map if possible, otherwise create new color or
  * in a pinch a close color. */
 {
 return vgFindColorIx(hvg->vg, r, g, b);
 }
 
+INLINE int hvGfxFindAlphaColorIx(struct hvGfx *hvg, int r, int g, int b, int a)
+/* Find color in map if possible, otherwise create new color or
+ * in a pinch a close color. */
+{
+return vgFindAlphaColorIx(hvg->vg, r, g, b, a);
+}
+
 INLINE struct rgbColor hvGfxColorIxToRgb(struct hvGfx *hvg, int colorIx)
 /* Return rgb values for given color index. */
 {
 return vgColorIxToRgb(hvg->vg, colorIx);
 };
 
 INLINE void hvGfxSetHint(struct hvGfx *hvg, char *hint, char *value)
 /* Set hint */
 {
 vgSetHint(hvg->vg,hint,value);
 }
 
 INLINE char* hvGfxGetHint(struct hvGfx *hvg, char *hint)
 /* Get hint */
 {