Skip to content

Commit d82af48

Browse files
committed
removed Two group for shapes
1 parent b9a39ce commit d82af48

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

js/secrets.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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
}
2222
var shapes = makeFlowers();
23-
var container = two.makeGroup();
2423

2524
for (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
}
4442
two.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

6345
function roseMath(v, k, t) {

0 commit comments

Comments
 (0)