Skip to content

Commit 42310ed

Browse files
committed
trigonometry commit
1 parent 6375399 commit 42310ed

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/data/examples/en/08_Math/22_trigonometryAndParticles.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ let value = 0;
1010
let clicked = 0;
1111
let x = 0;
1212
let y = 0;
13-
1413
function Super_Tornado() {
1514
ratio = frameCount * 0.01;
1615
points = [];
@@ -37,29 +36,24 @@ function Super_Tornado() {
3736
x = cos(theta) * i / 3 * sin(theta) * tan(f + 1);
3837
y = sin(1 / theta) * i / 3 * log(i) * tan(i);
3938
}
40-
4139
ellipse(x, y, 3, 3);
42-
4340
points.push({
4441
'x': x,
4542
'y': y
4643
})
4744
}
4845
}
49-
5046
function setup() {
5147
createCanvas(400, 400);
5248
noStroke();
5349
}
54-
5550
function draw() {
5651
background(30);
5752
translate(width / 2, height / 2);
5853
ratio = frameCount * 0.01;
5954
points = [];
6055
Super_Tornado();
6156
}
62-
6357
function mouseClicked() {
6458
if (clicked < 5) {
6559
clicked++;

0 commit comments

Comments
 (0)