... Trocoide() // Ham (2t-3sint, 2-3 cost){ // t ∈ [ -9 , 9] float t;int i, x, y;for (i = -1 000; i<=1000; i++) {t = 0.01*i;x = int(15*(2*t-3*sin(t))) + midx;y = -int(10*( 2-3 *cos(t))) + midy;putpixel(x, ... 3); line(0, maxy-50, maxx, maxy-50); setlinestyle(SOLID_LINE, 1, 1); while (x-r<=maxx) { bx(x, y, r, phi, 0); delay(20); bx(x, y, r, phi, 1); x += 1; phi = phi-pi/72;} 198 Chương 6. Đồ họa ... y, z);if ((mat[3]-mat[1]) * (mat[6]-mat[0]) − (mat[7]-mat[1]) * (mat[2]-mat[0]) < 0)setfillstyle(1, YELLOW); else setfillstyle(1, GREEN);fillpoly(4, mat);delay(10);204 Chương 6. Đồ họa...