Monday, April 1, 2013

Curve Tracing - Drawing Cos(x) graph

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 cos(x) curve using c graphics program on dosbox ( A dos emulator). For cos(x) read "draw sin(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
Related Posts Plugin for WordPress, Blogger...