Created
December 4, 2016 01:03
-
-
Save DavidBuchanan314/22effa437afaddd24bd138f536df9f42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define F for(i=0;i<l;i++) | |
#define W;write(1,// Hire Me | |
main(n){int i,j,w=640,h=480, | |
l=w*h,o[]={-w-1,-w,-w+1,-1,1 | |
, w-1, w, w+1}; char b[l*4]; | |
memset(b, 128, l*3); F b[i]= | |
rand()W"YUV4MPEG2 W640 H480" | |
" F60:1 C444\n",31);for(W"F" | |
"RAME\n",6)W b,l*3)){F{for(n | |
=0,j=0;j<8;n+=b[(i+l+o[j++]) | |
%l]&1);b[i+l*3]=!(n==3|b[i]& | |
n==2)-1;}memcpy(b,b+l*3,l);} | |
}//gcc gol.c &&./a.out|mpv - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment