Galaxy Shell / docs

Nebula

docs/themes/galaxy/nebula.md · Editar no GitHub ↗

Esta página ainda não tem tradução em português. O conteúdo abaixo está em inglês.

Nesta página

Nebula

Part of the Galaxy theme. This specification preserves the 2026-11-03 implementation sequence: later refinements supersede earlier values. The camera/parallax correction below replaces the initial crystals-only limit.

Nebula effect (2026-11-03)

The user showed a reference image of a bright nebula core with rays and filaments and asked for that look ("Finish the nebula"). The protected setting wallpaperEffect takes a third value, nebula ("Nebulosa" in the settings); the core, the page and the stream accept it as they accept the others, and the camera event stays crystals only.

host/wallpaper-nebula.js draws one full-screen pass at the same 1280x720 and 30 fps caps: a bright core off the center (nebulaCenter, 0.8 x 0.74 from the bottom left, where the chat usually is not), rays from noise along the direction, a warped fbm cloud and ridged filaments in a ring, sparse stars, then a tone map (1 - exp(-c)) so the radiance above 1.0 saturates to white. The colors are the saturated hues of the glow and accent tokens, so the 600 ms palette transition applies. The motion loops every 900 s with no jump.

Legibility: besides the same hard cap behind the text, the shader darkens a wide soft area around each region (the mask averaged over 96 px), because a bright backdrop made the 40 px feather of the mask read as a dark rectangle. No bloom pass and no render target: the glow is computed in the shader.

Later on 2026-11-03 the user said the nebula "quase não tem movimentação": the loop is now 180 s, the drift circle is larger and the rays turn once around the core in each loop (turn). The settings show the effects as three HeroUI radio cards (Nebulosa, Cristais, Aurora) with a small CSS preview in the profile colors and one line each, in place of the select.

The user then said "a nebulosa não se mexe": the filaments and rays now also flow on a 30 s loop (flow.xy), the core pulses on a 6 s loop (flow.z) and the rays turn twice in each 180 s loop. Two captures 3 s apart differ clearly in the nested session.

Back to 2D, with parallax (2026-11-03)

The user dropped the 3D wallpapers: the wallpaper is still a 2D view, so a real 3D model adds cost and no depth. The four 3D nebula commits (76a0fb6, 14395ae, 24fa0f7, 37e98be) are reverted, and the 2D nebula of 6de7f42 is back. It now takes the phase 2 camera event like the crystals, so it does not move with the workspace: the middle parallax layer moves and scales the cloud, the rays and the core, and the far layer moves the stars. The aurora still ignores the camera.

Slower rays and living stars (2026-11-03)

The user found the rays too fast and the stars static. The rays turn once in 6 minutes (was 90 s) and their streaks follow the drift and the flow at about a quarter of the cloud. The stars are three layers (cells of 7, 13 and 24 px): the far one follows the far parallax, the middle and near ones move more with the camera and drift sideways at 1.2 and 3 px/s. Each star twinkles at its own rate, takes a warm or a cool tint, and the brightest few get a soft cross glint. The new clock uniform is the scene time in an hour loop.

Integration

See the wallpaper integration contract for protected settings, camera events, palette transitions and resource ownership.