Lines Matching refs:color
124 * @brief Fill a rectangle on the screen with a constant color.
126 void gfx_fillrect(gfx_surface* surface, uint x, uint y, uint width, uint height, uint color) {
127 LTRACEF("surface %p, x %u y %u w %u h %u c %u\n", surface, x, y, width, height, color);
144 surface->fillrect(surface, x, y, width, height, color);
150 void gfx_putpixel(gfx_surface* surface, uint x, uint y, uint color) {
156 surface->putpixel(surface, x, y, color);
160 static void putpixel(gfx_surface* surface, uint x, uint y, uint color) {
164 *dest = static_cast<T>(color);
167 *dest = static_cast<T>(surface->translate_color(color));
212 T color;
213 if (sizeof(_color) == sizeof(color)) {
214 color = static_cast<T>(_color);
216 color = static_cast<T>(surface->translate_color(_color));
222 *dest = color;
229 void gfx_line(gfx_surface* surface, uint x1, uint y1, uint x2, uint y2, uint color) {
264 surface->putpixel(surface, px, py, color);
275 surface->putpixel(surface, px, py, color);
696 uint color;
701 color = y * 100 / step;
702 gfx_putpixel(surface, x, y, 0xff << 24 | color << 16);
706 color = y * 100 / step;
707 gfx_putpixel(surface, x, y, 0xff << 24 | color << 8);
711 color = y * 100 / step;
712 gfx_putpixel(surface, x, y, 0xff << 24 | color);