4 ms·
wget http://www.ioccc.org/2012/endoh1/endoh1_color.c cc -DG=1 -DP=4 -DV=8 endoh1_color.c -lm # Parameters — factors of gravity, pressure & viscosity ./a.out
by lelf 7y ago
wget http://www.ioccc.org/2012/endoh1/endoh1_color.c
cc -DG=1 -DP=4 -DV=8 endoh1_color.c -lm # Parameters — factors of gravity, pressure & viscosity
./a.out < endoh1_color.c
- nacs 7y agoGot it working on Mac with this, thanks! What's amazing to me is that the source code is actually formatted to say "Fluid color" which is why piping the source into the generated binary (as in the 2nd command above) generates that image. Incredible.