Compare commits

...

1 Commits

Author SHA1 Message Date
a60e5167dd Return infinite values 2022-08-12 12:05:30 -07:00

View File

@ -161,8 +161,12 @@
} }
function sin(timestamp, period, amplitude, offset, phase, randomness) { function sin(timestamp, period, amplitude, offset, phase, randomness) {
return amplitude if (Math.round(Math.random())) {
* Math.sin(phase + (timestamp / period / 1000 * Math.PI * 2)) + (amplitude * Math.random() * randomness) + offset; return 1 / 0;
} else {
return amplitude
* Math.sin(phase + (timestamp / period / 1000 * Math.PI * 2)) + (amplitude * Math.random() * randomness) + offset;
}
} }
function wavelengths() { function wavelengths() {