File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ if(isMobile && !isOtherMediaQuery) {
2020 radius = Math . floor ( Math . max ( two . width , two . height ) / Math . max ( rows , cols ) ) / 2 ;
2121}
2222var shapes = makeFlowers ( ) ;
23- var container = two . makeGroup ( ) ;
2423
2524for ( var r = 0 ; r < rows ; r ++ ) {
2625 // even rows have an offset of 0.5
@@ -38,26 +37,9 @@ for (var r = 0; r < rows; r++) {
3837 var hi = k / ( cols - 1 ) ;
3938 var shape = pickFlower ( ) ;
4039 shape . translation . set ( hi * two . width , vi * two . height ) ;
41- container . add ( shape ) ;
4240 }
4341}
4442two . update ( ) ;
45- // the animation is very heavy will try with css
46- // var time = 0;
47- // two.bind('update', function(frameCount, timeDelta) {
48- // if (timeDelta) {
49- // time += timeDelta;
50- // }
51- // if (time > 1000) {
52- // for (var c in container.children) {
53- // var child = container.children[c];
54- // if (child.name !== 'background') {
55- // child.rotation += child.step;
56- // }
57- // }
58- // }
59- //
60- // });
6143
6244
6345function roseMath ( v , k , t ) {
You can’t perform that action at this time.
0 commit comments