Colour Game of Life:
#define F for(i=0;i<l*3;i++)
main(n){int i,j,w=640,h=480,l=w*h,o[]={~w,-w,-w+1,-1,1,w-1,w,w+1},b[l*5];F b[i]=rand();for(puts("YUV4MPEG2 W640 H480 F30 C444");puts("FRAME");){F{for(n=j=8;j;n-=b[i+o[--j]]&1);b[i+l]=(n^5&&!b[i]|n^6)-1;}F putchar(b[i]=b[i+l]);}}
-
Show this thread
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.