diff --git a/index.html b/index.html index 1a283d2..1427047 100644 --- a/index.html +++ b/index.html @@ -540,15 +540,18 @@ // Moon position - interpolated between moonrise and moonset on the orbit var moonPos = getMoonPosition(now, moonTimes); if (!moonPos || !moonPos.point || isNaN(moonPos.point.x) || isNaN(moonPos.point.y)) { - // Fallback to current time position var fallbackP = pointOnCircle(now, MOON_ORBIT_RADIUS); rpgMoon.setAttribute('transform', 'translate(' + fallbackP.x + ', ' + fallbackP.y + ')'); - rpgMoon.setAttribute('opacity', '0.35'); + rpgMoon.setAttribute('opacity', '0.6'); } else { rpgMoon.setAttribute('transform', 'translate(' + moonPos.point.x + ', ' + moonPos.point.y + ')'); - rpgMoon.setAttribute('opacity', moonPos.isVisible ? '1' : '0.35'); + rpgMoon.setAttribute('opacity', moonPos.isVisible ? '1' : '0.6'); } + // TEMP DEBUG: show moon at center + // rpgMoon.setAttribute('transform', 'translate(100, 100)'); + // rpgMoon.setAttribute('opacity', '1'); + // Sun rise/set arrows var srP = pointOnCircle(sunTimes.sunrise, SUN_ORBIT_RADIUS); sunRiseArrow.setAttribute('transform', 'translate(' + srP.x + ', ' + srP.y + ')');