Computer graphics

Closed
ilyas - Jul 20, 2010 at 07:53 AM
 Blocked Profile - Jul 20, 2010 at 10:16 AM
draw a staright line using pixel in c language?

1 response

Blocked Profile
Jul 20, 2010 at 10:16 AM
Hi there,

Follow these instructions for drawing line in c:

Output a dot in loop,horizontal line from a(x1,y1) b (x2,y2) start from x1,y1 then in every next loop keep y1 increasing x1 by 1.

Thanks
0