Bresenham circle and line drawing algorithm cpp
Change values in cpp file itself
g++ bres_line.cpp -o bl
./bl
BressH - Line
0 k 97 pk 25 xk 25 yk
1 k| 171 pk| 26 xk| 26 yk|
2 k| 245 pk| 27 xk| 27 yk|
3 k| 319 pk| 28 xk| 28 yk|
4 k| 393 pk| 29 xk| 29 yk|
5 k| 467 pk| 30 xk| 30 yk|
6 k| 541 pk| 31 xk| 31 yk|
7 k| 615 pk| 32 xk| 32 yk|
8 k| 689 pk| 33 xk| 33 yk|
9 k| 763 pk| 34 xk| 34 yk|
10 k| 837 pk| 35 xk| 35 yk|
11 k| 911 pk| 36 xk| 36 yk|
12 k| 985 pk| 37 xk| 37 yk|
13 k| 1059 pk| 38 xk| 38 yk|
14 k| 1133 pk| 39 xk| 39 yk|
15 k| 1207 pk| 40 xk| 40 yk|
16 k| 1281 pk| 41 xk| 41 yk|
17 k| 1355 pk| 42 xk| 42 yk|
18 k| 1429 pk| 43 xk| 43 yk|
19 k| 1503 pk| 44 xk| 44 yk|
20 k| 1577 pk| 45 xk| 45 yk|
21 k| 1651 pk| 46 xk| 46 yk|
22 k| 1725 pk| 47 xk| 47 yk|
23 k| 1799 pk| 48 xk| 48 yk|