Using Mathematics, draw pixel at x,y by calculating y for corresponding x. Any equation can be shown as a graph using c graphics. The current program shows how to draw sin(x) curve using c graphics program on dosbox ( A dos emulator). For cos(x) read "draw cos(x) graph" article. By introducing some delay between drawing pixel, pixel moving animation can be shown. I will be posting more such graphics programs, keep visiting this site and encourage us by liking our page at facebook.

Pin It