Write a program to draw the line using DDA algorithm.
``` #include #include #include #include #include
``` #include #include #include #include #include
``` #include #include #include #include #include void main() { int gd=DETECT,gm; int x1,x2,y1,y2; int i,flag,d; clrscr(); cout<<"Enter value of (x...
``` #include #include #include #include #include #include
``` #include #include #include #include #include void driver() { int gd=DETECT,gmode; initgraph(&gd,&gmode,"c:\\tc\\bgi"); }
``` #include #include #include #include #include void ellipsemidpoint(int xcenter, int ycenter, int rx, int ry); void plotpoint(int x,int xcenter, int y...
``` //3. Write a program to Implement Translation? //Translation #include #include #include #include #include int x1,y1,x2,y2,x,y; int main(void) { int...
``` //5. Write a program to Implement Shearing of Rectangle. //shearing #include #include #include #include #include int x1,y1,x2,y2,x,y; int main(void)...
``` //4. Write a program to Implement Rotation of Triangle. //rotation #include #include #include #include #include #include float x1,y1,x2,y2,x,y,x3,y...
``` #include #include #include #include void fill_right(x,y) int x , y ; { if(getpixel(x,y) == 0) { putpixel(x,y,RED); fill_right(++x,y); x = x - 1 ;...
``` #include #include #include #include void fill_right(x,y) int x , y ; { if((getpixel(x,y) != WHITE)&&(getpixel(x,y) != RED)) { putpixel(x,y,RE...