added problem statement at the top
This commit is contained in:
parent
00460667ad
commit
f1ea190897
9
Assignment A-3a (Pattern using DDA Line and Bresenham Circle Algorithm).cpp
Executable file → Normal file
9
Assignment A-3a (Pattern using DDA Line and Bresenham Circle Algorithm).cpp
Executable file → Normal file
@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
Problem Statement: a) Write C++ program to draw the following pattern. Use DDA line and Bresenham‘s circle drawing algorithm. Apply the concept of encapsulation.
|
||||||
|
Code from Computer Graphics (SPPU - Second Year - Computer Engineering - Content) repository on KSKA Git: https://git.kska.io/sppu-se-comp-codes/CG
|
||||||
|
*/
|
||||||
|
|
||||||
|
// BEGINNING OF CODE
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <graphics.h>
|
#include <graphics.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@ -100,4 +106,5 @@ int main() {
|
|||||||
delay(50000);
|
delay(50000);
|
||||||
closegraph();
|
closegraph();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
// END OF CODE
|
||||||
|
9
Assignment A-3b (Pattern using DDA Line and Bresenham Circle Algorithm).cpp
Executable file → Normal file
9
Assignment A-3b (Pattern using DDA Line and Bresenham Circle Algorithm).cpp
Executable file → Normal file
@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
Problem Statement: b) Write C++ program to draw the following pattern. Use DDA line and Bresenham‘s circle drawing algorithm. Apply the concept of encapsulation.
|
||||||
|
Code from Computer Graphics (SPPU - Second Year - Computer Engineering - Content) repository on KSKA Git: https://git.kska.io/sppu-se-comp-codes/CG
|
||||||
|
*/
|
||||||
|
|
||||||
|
// BEGINNING OF CODE
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <graphics.h>
|
#include <graphics.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@ -108,4 +114,5 @@ int main() {
|
|||||||
delay(50000);
|
delay(50000);
|
||||||
closegraph();
|
closegraph();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
// END OF CODE
|
||||||
|
Loading…
Reference in New Issue
Block a user