consine.c draws a 2D representation of two sine waves, one on X-axis, the other Y-axis:

float value = fabsf(sin(fx/5.0)+sin(fy/2.5));
value /= 2.0;

With a character ramp to render out a result as below:

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuq1DsXwRbw1ccyAkxcNUrATQuwbGfb185cSyy_vs2ifriiS2WZrGmZbkdcmU2oOb9FdFu627acEXPFWSkO_50cAanooL64v-uKMvxcTlbKC3DyrgRq_Ev0du10wwYwgh6rImQLf6lDgM/s800-Ic42/2015-08-19--06%25253A57%25253A41.png

I decided to play with it a bit:

float value = fabsf(sin(fx/2.5)+sin(fx/5.0)+sin(fy/2.5)+sin(fy/5.0));
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuPmku4BYBvzQR5ss3ZMurAVq_W7jMmk0IqVjJtmK-ZOguYgPJoZvQDOCga263lGIvB6w2OG_nUtGFek_dMxdw6UgO07jRyQJL1WAjPDg9t80_gv2vMcbH2oQdMyVlUlhIyo8SqVzwwEg/s800-Ic42/2015-08-19--07%25253A00%25253A51.png

I forgot to adjust the equalizer to 4.0, but still produced an interesting result.

You could even add a Z-axis for colors, also using sine function or whatever you fancy, slowly swinging in the range of Z, playing a colorful animation, but I will leave that to you to play with.

consine.c was written by flarn2006 on the Pi Day of 2013, under the CC BY-SA 3.0 license.