Hacker News new | past | comments | ask | show | jobs | submit login

  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



Got 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: