xxxxxxxxxx
36
function setup() {
createCanvas(400, 400);
background(220);
scene = new Scene();
reel();
}
function draw() {
background(220);
}
function reel() {
grp = create2DGraph((t) => 800 * Math.cos(2 * t) + 1000 * Math.sin(4 * t) + 800 * Math.sin(6*t));
grp.plot();
grp.position(10, 200);
grp.play();
grp1 = create2DGraph((t) => 800 * Math.cos(2 * t));
grp1.plot();
grp1.position(10, 0);
grp1.play();
grp2 = create2DGraph((t) => 1000 * Math.sin(4 * t));
grp2.plot();
grp2.position(10, 50);
grp2.play();
grp3 = create2DGraph((t) => 800 * Math.sin(6 * t));
grp3.plot();
grp3.position(10, 100);
grp3.play();
}