Skip to content
Permalink
Browse files

New gifs

  • Loading branch information
kopiro committed Oct 25, 2018
1 parent 2e4458a commit e37c1439ae8a09f042261a077ee3086daa0d6a38
Showing with 10 additions and 10 deletions.
  1. BIN classic.gif
  2. +1 −1 dist/siriwave.js
  3. +9 −9 dist/siriwave.m.js
  4. BIN ios9.gif
BIN +790 KB (230%) classic.gif
Binary file not shown.
@@ -339,7 +339,7 @@

}).call(commonjsGlobal);

//# sourceMappingURL=performance-now.js.map

});

var root = typeof window === 'undefined' ? commonjsGlobal : window
@@ -106,17 +106,17 @@ function () {

this.ctrl = opt.ctrl;
this.definition = opt.definition;
this.GRAPH_X = 10;
this.GRAPH_X = 6;
this.AMPLITUDE_FACTOR = 0.5;
this.SPEED_FACTOR = 2;
this.SPEED_FACTOR = 1;
this.DEAD_PX = 2;
this.ATT_FACTOR = 4;
this.DESPAWN_FACTOR = 0.02;
this.NOOFCURVES_RANGES = [2, 5];
this.NOOFCURVES_RANGES = [5, 10];
this.AMPLITUDE_RANGES = [0.6, 1];
this.OFFSET_RANGES = [-this.GRAPH_X / 2, this.GRAPH_X / 2];
this.OFFSET_RANGES = [-this.GRAPH_X / 4, this.GRAPH_X / 4];
this.WIDTH_RANGES = [0.5, 1];
this.SPEED_RANGES = [0.5, 1];
this.SPEED_RANGES = [1, 1];
this.DESPAWN_TIMEOUT_RANGES = [500, 2000]; // The padding (left and right) to use when drawing waves

this.PADDING_PX = 0.1 * this.ctrl.width;
@@ -232,7 +232,7 @@ function () {
}

this.amplitudes[ci] = Math.min(Math.max(this.amplitudes[ci], 0), this.finalAmplitudes[ci]);
this.phases[ci] = (this.phases[ci] + this.ctrl.speed * this.speeds[ci] * this.SPEED_FACTOR * Math.random()) % (2 * Math.PI);
this.phases[ci] = (this.phases[ci] + this.ctrl.speed * this.speeds[ci] * this.SPEED_FACTOR) % (2 * Math.PI);
}

var maxY = 0; // Write two opposite waves
@@ -273,13 +273,13 @@ function () {
supportLine: true
}, {
// blue
color: "12, 107, 192"
color: "15, 82, 169"
}, {
// red
color: "135, 46, 76"
color: "173, 57, 76"
}, {
// green
color: "73, 226, 158"
color: "48, 220, 155"
}];
}
}]);
BIN +607 KB (310%) ios9.gif
Binary file not shown.

0 comments on commit e37c143

Please sign in to comment.
You can’t perform that action at this time.