fix(background): make the gradient motions visible at a glance - #839
EtienneLescot merged 1 commit into
Conversation
Measured on a port of the shader, the three motions strayed 3 to 9 % from the still gradient and changed by less than 1/255 per frame, so they read as a still background. Motion is now twice as fast and two to ten times wider, depending on the gradient. Aurora blobs and wave crests also lighten or darken a little: most offered gradients pair two neighbouring hues, and moving their own colours alone stayed invisible on them. Drift slides along its axis on top of swinging it, since a rotation alone leaves the centre still.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe compositor’s Metal and WGSL shaders now use faster aurora and wave animation, adjusted color blending, and stronger linear-gradient drift. The documented gradient motion periods and divisibility test now include 6, 10, 12, 15, 20, and 30 seconds. The 120-second wrap period remains unchanged. ChangesGradient Animation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The updated gradient motions have no identified merge-blocking issue in the supplied evidence. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 Clippy (1.98.1)Clippy execution failed Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The gradient motions were invisible; they now read at a glance. Measured on a port of the shader, drift, aurora and waves strayed 3–9 % from the still gradient and changed by less than 1/255 per frame.
Image wallpapers get the same three motions in a follow-up commit on this PR.
Related issue
Part of #814 (stacked on
integration/demo-never-ugly).Type of change
Release impact
Desktop impact
Screenshots / video
Before/after renders from the D3D11 compositor (8 s per motion, two catalogue gradients) were reviewed locally.
Testing
Frame-mean change on the catalogue gradient
#3b82f6 → #8b5cf6, 0–255 units:cargo test -p openscreen-compositor --lib: 372 passed.animated_backgroundGPU test (D3D11): the still gradient is byte-identical at every instant; each motion is distinct at three instants and reproducible.build.rs), WGSL validated by naga. Metal cannot be compiled on this machine; it mirrors the HLSL line for line.🤖 Generated with Claude Code
Summary by CodeRabbit