Lines Matching defs:color
49 * need to apply masks of 16-bit color components. This will preserve
52 * There are different algorithms how to perform such color space reduction,
53 * we are currently using bitwise right shift to reduce color space and so far
57 * indexed. From video, we do get color indexes, and we do translate
58 * color index values to RGB. To write to video, we again need to translate
59 * RGB to color index. Additionally, we need to translate between VGA and
62 * Our internal color data is represented using BGRA format. But the hardware
79 * in VGA color order, this serves two purposes; firstly,
83 * console color ordering - this does allow us to skip translation
228 uint32_t color, code, gray, level;
237 /* 6x6x6 color cube */
251 color = CF(r, red);
252 color |= CF(g, green);
253 color |= CF(b, blue);
254 return (color);
272 * Support for color mapping.
275 * or we will lose color information from 32-bit to 15/16 bit translation.
307 * Get indexed color from RGB. This function is used to write data to video
317 uint32_t color, best, dist, k;
320 color = 0;
335 color = k;
340 k = color;
1548 * draw rectangle using terminal coordinates and current foreground color.