Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
LetsWorkAround authored Aug 21, 2024
1 parent 313eb48 commit 31066a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ <h3>레드판다스컴퍼니 주식회사 (Red Pandas Company)</h3>

function updateData() {
const newTime = data[data.length - 1].time + 1;
const newValues = data[data.length - 1].values.map(v => Math.max(-20, Math.min(20, v + (Math.random() - 0.5) * 2)));
const newValues = data[data.length - 1].values.map(v => Math.max(-10, Math.min(10, v + (Math.random() - 0.5) * 2)));
data.push({ time: newTime, values: newValues });
if (data.length > dataPoints) data.shift();
}
Expand Down Expand Up @@ -580,7 +580,7 @@ <h3>레드판다스컴퍼니 주식회사 (Red Pandas Company)</h3>
window.addEventListener('resize', resizeCanvas);
resizeCanvas();

setInterval(animate, 1000);
setInterval(animate, 5000);
})();
</script>
</body>
Expand Down

0 comments on commit 31066a8

Please sign in to comment.