Widget:TwinSuns: Difference between revisions

From WyrdeWiki
No edit summary
No edit summary
Line 10: Line 10:
  | equator=8
  | equator=8
  | sep=2.5
  | sep=2.5
  | degpx=5
  | degpx=10
  | solara=https://www.wyrdehavenchronicl.es/wiki/images/f/fe/Solara.png
  | solara=https://www.wyrdehavenchronicl.es/wiki/images/f/fe/Solara.png
  | vaelus=https://www.wyrdehavenchronicl.es/wiki/images/7/7a/Vaelus.png
  | vaelus=https://www.wyrdehavenchronicl.es/wiki/images/7/7a/Vaelus.png
Line 138: Line 138:
       var w = el.stage.clientWidth || el.stage.getBoundingClientRect().width || 0;
       var w = el.stage.clientWidth || el.stage.getBoundingClientRect().width || 0;
       if(!w){ return; } // wait for layout
       if(!w){ return; } // wait for layout
       var base = Math.round(w * 0.05);
       var base = Math.round(w * 0.08);
       el.s.width = el.s.height = base;
       el.s.width = el.s.height = base;
       el.v.width = el.v.height = Math.round(base * 0.72);
       el.v.width = el.v.height = base;
     }
     }



Revision as of 21:06, 11 November 2025

This widget shows WyrdeHaven’s twin suns with seasonal wobble & calendar.

Usage

1 / 479
Date: Fortnight of Renewal (Dawning), day 8 (FR 8)
Sky Solara Vaelus
Relative Solar Inclination (Δ): +2.50° (Closing)
Seasonal Equatorial Inclination (barycenter): -8.00°

param meaning default
size max stage width (px) 768
fps play speed (frames/s) 5
wobble solar relative wobble amplitude (Δ, degrees) 2.5
equator seasonal/barycenter max tilt (degrees) 8
sep visible horizontal separation between suns (degrees) 2.5
degpx vertical degree→pixel scale (px per degree) 10