3.implement Following Line Drawing Algorithms (With Mouse) : DDA Algorithm
3.implement Following Line Drawing Algorithms (With Mouse) : DDA Algorithm
}
else
{
iSteps = fabs(dY);
}
xInc = dX/iSteps;
yInc = dY/iSteps;
x = x1;
y = y1;
circle(x,y,1);
for (iCount=1; iCount<=iSteps; iCount++)
{
putpixel(floor(x),floor(y),iColor);
x -= xInc;
y -= yInc;
}
circle(x,y,1);
return 0;
}