Repository navigation
docs: draw the website's scene in each theme's own style - #389
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #385, the website revamp.
Problem
Picking a theme on the website only changes the lighthouse's stripes and hat, so the scene behind the page looks the same for every theme.
Changes
Each theme now draws the whole scene in its own medium. The hill, animals, gags and hours stay the same, and the lighthouse keeps its pyjamas.
scene.jsgets a style layer, documented in its "styles" comment block. A style can swap the line, the fills, the palette, the colour constants, the font, the frame rate, passes before and after the frame, and any of the 43 drawings. The drawings now call each other through that layer.C.site/styles/, loaded afterscene.js.cachedlever, instead of blurring the whole screen every frame.The cartoon's captions, for a copy check:
Testing
Before, the seven themes by day on the base branch:
After, by day (built-in, Catppuccin, Notch, Phosphor, Nord, Gruvbox, Léman):
After, at night:
The dive, past one island per theme, each in its own style:
Known gaps:
Merging
Two commits; a merge commit keeps both. It targets
docs/website-absurd-ink: merge it there before #385 lands, or retarget it tomainafterwards.Claude Opus 5.5 via Claude Code in T3 Code