161 glTranslatef(0,-0.44,0);
165 glTranslatef(-0.45,-0.45,0);
169 glTranslatef(0.45,-0.45,0);
178 glTranslatef(-0.45/1.5,-0.45/1.5,0);
182 glTranslatef(0.45/1.5,-0.45/1.5,0);
185 glColor3f(0.5,0.5,0.5);
192 color = (float)(
i)/(float)(ACTUAL_NUM_PIXELS);
203 color = log10(color);
221 while (
ss[index] < color && index < 4)
224 if (index < 0) index = 0;
225 float weight0 = (color-
ss[index]) / (
ss[index+1]-
ss[index]);
226 if (weight0 > 1.0f) weight0 = 1.0f;
227 if (weight0 < 0.0f) weight0 = 0.0f;
228 float weight1 = 1.0f-weight0;
247 glTranslatef(0,0,0.1f);
248 glColor3f(0.0f,0.0f,0.0f);
#define ACTUAL_NUM_PIXELS
void drawBlurryHexagon(int index)
GLfloat tooLowValueCoulour[3]
GLfloat pixelsColor[NPIX][3]
void drawHexagon(int index, bool solid)
GLfloat tooHighValueCoulour[3]
static int hardwareMapping[NPIX]