We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ecea40 commit fac3adaCopy full SHA for fac3ada
js/secrets.js
@@ -24,20 +24,6 @@ function setup() {
24
var cols = Math.floor(width / size);
25
var radius = Math.floor(Math.max(width, height) / Math.max(rows - 1, cols - 1)) / 2;
26
27
-for (var r = 0; r < rows; r++) {
28
- // even rows have an offset of 0.5
29
- var even = !!(r % 2);
30
- var vi = r / (rows - 1);
31
- for (var c = 0; c < cols; c++) {
32
- var k = c;
33
- if (even) {
34
- k += 0.5;
35
- // we skip the final col on even rows to avoid overflow
36
- if (c >= cols - 1) {
37
- continue;
38
- }
39
40
- var hi = k /(cols - 1);
41
var shape = pickFlower(shapes);
42
shape.translation.set(hi * two.width, vi * two.height);
43
flowers.push(shape);
0 commit comments