1. Trang chủ
  2. » Tất cả

To mau

5 7 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 110,87 KB

Nội dung

TÔ MÀU LOANG #include #include #include void Loang(int x, int y, int mb, int mt) { if((getpixel(x,y)!=mb)&&(getpixel(x,y)!=mt)) { putpixel(x,y,mt); delay(1); Loang(x+1,y,mb,mt); Loang(x-1,y,mb,mt); Loang(x,y+1,mb,mt); Loang(x,y-1,mb,mt); } } int main() { int gr_drive = DETECT, gr_mode; initgraph(&gr_drive, &gr_mode, ""); circle(200,200,50); Loang(200,200,15,4); getch(); closegraph(); } TÔ MÀU BIÊN #include #include #include //Tô m t n a void Tmb_nua_x(int x,int y, int mb,int mt,int u) { int x1,x2; { x1=x;x2=x; while (getpixel(x1-1,y)!=mb) x1 ; while (getpixel(x2+1,y)!=mb) x2++; setcolor(mt);//Khơng setcolor ch cm tn a line(x1,y,x2,y); delay(20); while (getpixel(x1,y+u)==mb) x1++; if (x1

Ngày đăng: 29/07/2019, 17:06

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN

w