framing-tube

var coswave = [10];

function setup() {
createCanvas(1000,1000, WEBGL);
for (var i = 0; i < width; i++) {
var amount = map(i, 0, width, 0, PI);
coswave[i] = abs(sin(amount));
}

}

function draw() {
background(0);
//noFill();
stroke(0);
//fill(255);

var y1 = 0;
var y2 = height/3;
for (var i = 0; i < height; i+=10) {
// blendMode(ADD);

translate(sin(i),sin(i),sin(i));

// push();
rotateX(frameCount/10 * 0.01+10*i);
rotateY(frameCount/10 * 0.01+10*i);
rotateZ(90);
torus(i,20,14,14);

// pop();

}
}

One thought on “framing-tube”

发表评论

电子邮件地址不会被公开。 必填项已用*标注