예제 #1
0
파일: fb.c 프로젝트: SIGSWAG/SEA
/*
 * 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);
    }
  }
}
예제 #2
0
파일: fb.c 프로젝트: SIGSWAG/SEA
/*
 * 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);
    }
  }
}
예제 #3
0
파일: bitmap.c 프로젝트: rstancioiu/Sea
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);
		}
	}
}
예제 #4
0
파일: fb.c 프로젝트: SIGSWAG/SEA
/*
 * 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);
    }
  }
}