Compare commits

..

1 Commits

Author SHA1 Message Date
Andrew Henry
a60e5167dd Return infinite values 2022-08-12 12:05:30 -07:00
2 changed files with 6 additions and 4 deletions

View File

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

View File

@@ -52,8 +52,6 @@ $meterNeedleBorderRadius: 5px;
.c-dial {
max-height: 100%;
max-width: 100%;
display: block;
margin: auto; // Centers SVG in container while allowing scaling
&__bg {
fill: $colorGaugeBg;