src/oneShot/rgbaGfxTest/rgbaGfxTest.c 1.3

1.3 2010/05/07 05:37:08 kent
Fiddling with spacing.
Index: src/oneShot/rgbaGfxTest/rgbaGfxTest.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/oneShot/rgbaGfxTest/rgbaGfxTest.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 4 -r1.2 -r1.3
--- src/oneShot/rgbaGfxTest/rgbaGfxTest.c	30 Apr 2010 17:08:46 -0000	1.2
+++ src/oneShot/rgbaGfxTest/rgbaGfxTest.c	7 May 2010 05:37:08 -0000	1.3
@@ -373,9 +373,9 @@
 
 void rgbaGfxTest(char *inNames[], int inCount, char *output)
 /* rgbaGfxTest - Test out rgbaGfx system.. */
 {
-int width = 700, heightOne = 50, spaceBetween=10;
+int width = 700, heightOne = 50, spaceBetween=6;
 int lineHeight = heightOne + spaceBetween;
 int height = lineHeight * (inCount+1);
 struct rgbaGfx *rg = rgbaGfxNew(width, height);
 rgbaGfxSetToSolidWhite(rg);
@@ -396,10 +396,11 @@
 int i;
 for (i=0; i<inCount; ++i)
     {
     struct rgbaColor col = rgbaLightRainbowColor((double)i/inCount);
-    drawBigWigAt(inNames[i], rg, col, 0, 0, width, heightOne);
-    drawBigWigAt(inNames[i], rg, col, 0, (1+i)*lineHeight, width, heightOne);
+    uglyf("color %d,%d,%d\n", col.r, col.g, col.b);
+    drawBigWigAt(inNames[i], rg, col, 0, spaceBetween, width, heightOne);
+    drawBigWigAt(inNames[i], rg, col, 0, (1+i)*lineHeight + spaceBetween, width, heightOne);
     }
 
 savePng(output, rg);
 }