File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
src/data/examples/en/08_Math Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ let value = 0;
10
10
let clicked = 0 ;
11
11
let x = 0 ;
12
12
let y = 0 ;
13
-
14
13
function Super_Tornado ( ) {
15
14
ratio = frameCount * 0.01 ;
16
15
points = [ ] ;
@@ -37,29 +36,24 @@ function Super_Tornado() {
37
36
x = cos ( theta ) * i / 3 * sin ( theta ) * tan ( f + 1 ) ;
38
37
y = sin ( 1 / theta ) * i / 3 * log ( i ) * tan ( i ) ;
39
38
}
40
-
41
39
ellipse ( x , y , 3 , 3 ) ;
42
-
43
40
points . push ( {
44
41
'x' : x ,
45
42
'y' : y
46
43
} )
47
44
}
48
45
}
49
-
50
46
function setup ( ) {
51
47
createCanvas ( 400 , 400 ) ;
52
48
noStroke ( ) ;
53
49
}
54
-
55
50
function draw ( ) {
56
51
background ( 30 ) ;
57
52
translate ( width / 2 , height / 2 ) ;
58
53
ratio = frameCount * 0.01 ;
59
54
points = [ ] ;
60
55
Super_Tornado ( ) ;
61
56
}
62
-
63
57
function mouseClicked ( ) {
64
58
if ( clicked < 5 ) {
65
59
clicked ++ ;
You can’t perform that action at this time.
0 commit comments