FACT++  1.0
void RawDataViewer::calcMidBlurColor ( int  pixel,
int  vertex 
)
private

Definition at line 74 of file RawEventsViewer.cc.

References color(), first, and i.

75 {
76  GLfloat color[3];
77  int first;
78  first = vertex-1;
79  if (first < 0)
80  first = 5;
81  first = neighbors[pixel][first];
82  for (int i=0;i<3;i++)
83  color[i] = pixelsColor[pixel][i];
84  float divide = 1;
85  if (first != -1)
86  {
87  divide++;
88  for (int i=0;i<3;i++)
89  color[i] += pixelsColor[first][i];
90  }
91  for (int i=0;i<3;i++)
92  color[i] /= divide;
93  glColor3fv(color);
94 }
int i
Definition: db_dim_client.c:21
static PixelsNeighbors neighbors[MAX_NUM_PIXELS]
int64_t first
Size of this column in the tile.
Definition: zofits.h:26
GLfloat pixelsColor[NPIX][3]
function color(col)
Definition: color.js:31

+ Here is the call graph for this function: