Search This Blog

To adblock users

Hello! If you see this, you are most likely using an ad blocker. (Or maybe you have JavaScript disabled. Or maybe my web server is down.) I have no problem with ad blockers; in fact I use one myself. If a site tries to deny me access unless I disable it, I just find a way to circumvent that. But if a site politely asks me to do so, but still allows access to the site, I disable it for the site. I am asking you to please do the same for this site. I can't make you, but I would appreciate it. Thank you! :-)

Friday, February 18, 2011

C source code to display 2D sine pattern in console

I wrote a program that displays a 2D sine pattern in the console. It's mainly just for fun, as it doesn't really do anything else, but it looks cool.

NOTE: If it gives errors about unresolved externals when you try to compile it, it's because you need to link it with a curses library, such as ncurses or pdcurses.

Source code: http://pastebin.com/n49wmSb3
Sample output: http://pastebin.com/0r38z05H