/* * Rempli l'écran de blanc */ void drawBlue() { uint32 x=0, y=0; for (x = 0; x < fb_x; x++) { for (y = 0; y < fb_y; y++) { put_pixel_RGB24(x,y,0,0,255); } } }
/* * Rempli l'écran de rouge */ void drawRed() { uint32 x=0, y=0; for (x = 0; x < fb_x; x++) { for (y = 0; y < fb_y; y++) { put_pixel_RGB24(x,y,255,0,0); } } }
void draw_letter(char c) { int character = c-'A'; int x = 0, y= 0; int i,j; for(i=0;i<64;++i) { for(int j=0;j<55;++j) { int number = i*64+j; unsigned int r = letters[character][number].red; unsigned int g = letters[character][number].green; unsigned int b = letters[character][number].blue; put_pixel_RGB24(x+i,y+j,r,g,b); } } }
/* * Dessine sur tous les pixels des couleurs différentes */ void draw() { uint8 red=0,green=0,blue=0; uint32 x=0, y=0; for (x = 0; x < fb_x; x++) { for (y = 0; y < fb_y; y++) { if (blue > 254) { if (green > 254) { if (red > 254) { red=0; green=0; blue=0; } else { red++; } } else { green++; } } else blue++; put_pixel_RGB24(x,y,red,green,blue); } } }