site 1.4.4: background at 30 % of its speed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Thiemo TizianiandClaude Opus 5.5 committed 2026-10-20 12:02:29 +02:00
1 parent ac01b12168
commit 07aefdd11a
9 files changed
+38 -24

No files matched your search

+2 -2
View File
@@ -90,7 +90,7 @@
// mids amber, highs white) running along the bottom at 128 BPM; --beat pulses
// with it. Quiet when the system asks for reduced motion or the tab is hidden.
(function () {
var BPM = 128, COL = 4, still = window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;
var BPM = 128, COL = 4, SPEED = 0.3, still = window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;
function rnd(k) { var x = Math.sin(k * 127.1 + 311.7) * 43758.5453; return x - Math.floor(x); }
// one column of the waveform: k counts columns, 16 to a beat
function band(k) {
@@ -115,7 +115,7 @@
size(); addEventListener('resize', size);
function draw(now) {
var light = document.documentElement.getAttribute('data-theme') === 'light', a = light ? 0.5 : 1;
var t = (now - t0) / 1000, beats = t * BPM / 60;
var t = (now - t0) / 1000 * SPEED, beats = t * BPM / 60; // slowed down: calm, not a real 128 BPM
x.setTransform(dpr, 0, 0, dpr, 0, 0);
x.clearRect(0, 0, w, h);
// the record