Thuật toán đường thẳng đường tròn , tô màu loang,tô màu biên , tô màu da giác.... ..........................................................................................đồ họa máy tính , các bài tập đồ họa máy tính....
ĐƯỜNG THẲNG #include #include #include using namespace std; int color=GREEN; void DDA(int x1, int y1, int x2, int y2) { int Dx=x2-x1, Dy=y2-y1; float m=(float)Dx/Dy; int x=x1; float y=y1; putpixel(x,round(y),color); for(int i=x;i