Friday, July 17, 2009

XOR - Peano filigree



# include ;
# include ;
# include ;

int x,y;
int gd,gm;

void main(void)
{
clrscr();

initgraph(&gd,&gm,"c:\\bc\\bgi");

for(x=0;x < getmaxx();x++)
for(y=0;y < getmaxy();y++)
{
putpixel(x,y,(x^y)%2);
}

getche();
closegraph();
}

No comments:

Post a Comment