心得:
這次2-2的作業我是用在P.84的
// Draw circles at points along the curve y = x^4
noFill();
smooth();
for (int x = 0; x < 100; x += 5) {
float n = norm(x, 0.0, 100.0); // Range 0.0 to 1.0
float y = pow(n, 4); // Calculate curve
y *= 100; // Scale y to range 0.0 to 100.0
strokeWeight(n * 5); // Increase thickness
ellipse(x, y, 120, 120);
}
就讓他一直垂下去..垂下去..垂下去
其實還滿好玩的
沒有留言:
張貼留言