Lines Matching defs:gray
52 int cube, gray;
99 * Compute size of cube and gray ramps
101 cube = gray = 0;
118 * Figure out how many gray levels to use so that they
125 gray = needed / (cube - 1);
127 gray = (gray + 1) * (cube - 1) + 1;
130 gray = pColormap->pVisual->ColormapEntries;
137 gray = NUM_GRAY_LEVELS;
141 gray = 2;
159 for (g = 0; g < gray; g++)
162 red = green = blue = (g * 65535 + (gray-1)/2) / (gray - 1);
207 /* 0 <= gray < 32768 */
209 FindBestGray (miIndexedPtr pIndexed, Pixel *pixels, int num, int gray)
224 dr = gray - (r >> 1);