feat: Logo-Animation übernimmt exakte identifizierte Farbe

JSON wird per fetch geladen, Fill-Objekte von 'Small 4' (Gelb) werden
direkt mutiert und Animation ab aktuellem Frame neu geladen.
Kein hue-rotate mehr – eine Farbe ist exakt die gewählte Farbe.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ferdinand
2026-04-03 17:22:16 +02:00
parent 64614d49e7
commit 2a8b1157ab
3 changed files with 54 additions and 11 deletions

View File

@@ -49,8 +49,6 @@ document.addEventListener('colorChanged', (e) => {
const { h, s } = e.detail;
const pastelS = Math.round(Math.min(s * 0.5, 45));
document.body.style.background = `hsl(${h}, ${pastelS}%, 92%)`;
const logo = document.getElementById('lottie-logo');
if (logo) logo.style.filter = `hue-rotate(${h - 52}deg)`;
});
initEingabe(addFavorit, addColorToSchema);