Repository navigation
Feature: redraw the weather artwork as frosted glass with live motion - #524
Merged
Merged
Conversation
Draw every condition in code instead of from traced artwork: a frosted cloud with the sun or moon blurred behind it, palette colours only. Rain, snow and lightning fall from the cloud base at random spots. Fog is a set of drifting haze bands. Slow drift runs on a 500 ms timer, and all motion stops off screen and for reduced motion.
Move the lightning flash with the cloud it lights. Put the far rain and snow layer's opacity on its positioner, out of reach of the fall animation. Start falling parts in evenly spaced lanes, and show them below the cloud when motion is reduced.
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.
Summary
EL) with SVG drawn in code: a frosted cloud (clip path, palette fill layers, white rim) with the sun or moon blurred behind it throughfeGaussianBlur.animationiteration, with its own duration; the bolt also flips and redraws through a 200 mselement.animateat each strike.whileOnScreen, and stop all motion forprefers-reduced-motion.Testing
All green, e2e included. Added
weather-artwork.test.mjs: every condition draws by day and night, falling parts start and restart inside their lane, nothing blurred gets a frame-rate animation, and motion stops off screen and for reduced motion.Changelog
Changed
Checklist