jueves, 24 de enero de 2013

256 colores

#include <graphics.h>
#include <conio.h>

int huge DetectVga256(){
return 0;
}

int main(void)
{
int modo = DETECT, tarj ;

installuserdriver("SVGA256",DetectVga256);
initgraph(&modo, &tarj, "");


for(int x=0;x<=310;x++){
setcolor(x);
line(x,0,x,100);
}

   getch();
   return 0;
}

No hay comentarios:

Publicar un comentario