Add semantic motion engine - #222
Open
raiseCatError wants to merge 1 commit into
Open
raiseCatError wants to merge 1 commit into
raiseCatError wants to merge 1 commit into
Conversation
This was referenced Sep 29, 2026
raiseCatError
added this pull request to stack #228
September 29, 2026 22:29
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.
Implements #172 (engine and shimmer migration; see Deferred).
Stacked on #221 (
feature/165-surfaces), on #220, #219, #218, #217 and #203. Merge order: #203, #217, #218, #219, #220, #221, then this PR.What changed
src/motion/motion.ts: a pure engine.sampleMotion(profile, elapsedMs, cell)returns a 0..1 intensity. Shapes are sine (breathing/traveling shimmer), comet (slow rise, fast fall), tail (fast rise, long tail) and pulse (settle). Spread is uniform or traveling. Easing comes from Chroma's curves.NMSH_REDUCED_MOTION=1or deterministic presentation) holds every profile still.Deferred
Verification
tests/motion.test.tsand the existingtests/shimmer.test.ts; full suite 656/656, typecheck, build andgit diff --checkclean.