a715f8ee926e405d684ba6891aef9ef7c6b28475 braney Fri Feb 1 16:41:47 2019 -0800 circle primitive and a basic version of lollipops diff --git src/hg/inc/hvGfx.h src/hg/inc/hvGfx.h index c13a9f6..906d82b 100644 --- src/hg/inc/hvGfx.h +++ src/hg/inc/hvGfx.h @@ -56,30 +56,36 @@ } return x1; } INLINE int hvGfxAdjXW(struct hvGfx *hvg, int x, int width) /* Update a X position and width if reverse-complement mode */ { if (hvg->rc) { int x2 = (x + width); reverseIntRange(&x, &x2, hvg->width); } return x; } +INLINE void hvGfxCircle(struct hvGfx *hvg, int xCen, int yCen, int rad, int colorIx, boolean filled) +/* Draw a circle. */ +{ +vgCircle(hvg->vg, hvGfxAdjX(hvg, xCen), yCen, rad, colorIx, filled); +} + INLINE void hvGfxDot(struct hvGfx *hvg, int x, int y, int colorIx) /* Draw a single pixel. Try to work at a higher level when possible! */ { vgDot(hvg->vg, hvGfxAdjX(hvg, x), y, colorIx); } INLINE void hvGfxBox(struct hvGfx *hvg, int x, int y, int width, int height, int colorIx) /* Draw a box. */ { vgBox(hvg->vg, hvGfxAdjXW(hvg, x, width), y, width, height, colorIx); } INLINE void hvGfxOutlinedBox(struct hvGfx *hvg, int x, int y, int width, int height, int fillColorIx, int lineColorIx)