Revision 108
stuff
lab5/graphics.c | ||
---|---|---|
125 | 125 |
int (vg_draw_hline)(uint16_t x, uint16_t y, uint16_t len, uint32_t color){ |
126 | 126 |
|
127 | 127 |
//uint8_t color8 = color; |
128 |
set_pixel(x,y,color); |
|
129 |
set_pixel(x+1,y,color); |
|
130 |
set_pixel(x+2,y,color); |
|
128 |
for(uint32_t i = 0; i < 256; ++i){ |
|
129 |
set_pixel(x+i,y,i); |
|
130 |
}/* |
|
131 |
set_pixel(x,y,0); |
|
132 |
set_pixel(x+1,y,1); |
|
133 |
set_pixel(x+2,y,2); |
|
134 |
*/ |
|
131 | 135 |
//*(p++) = color8; |
132 | 136 |
//*(p++) = color8; |
133 | 137 |
//*(p++) = color8; |
Also available in: Unified diff