feat: add mouse-driven ink wash effect to homepage background#2
Open
gamersover wants to merge 2 commits into
Open
feat: add mouse-driven ink wash effect to homepage background#2gamersover wants to merge 2 commits into
gamersover wants to merge 2 commits into
Conversation
Places a canvas layer between the page background and content. Ink blobs spawn at the cursor, expand with a radial gradient, drift, and fade — creating a 水墨 (Chinese ink wash) feel. Color tracks the active theme selection in real time. https://claude.ai/code/session_01TWJsWThh3jbpCvPtxZhh3X
The homepage background now runs a WebGL Navier-Stokes fluid solver. The cursor stirs a velocity field; ink (dye) is advected through it, swirling, diffusing and slowly fading like ink dropped in water. The ink colour tracks the active theme selection in real time. - velocity field: curl/vorticity, pressure projection, advection - dye handled in a single combined advect+fade+inject pass for robustness - respects prefers-reduced-motion; WebGL1 fallback; cleans up on unmount Replaces the earlier Canvas2D blob effect (InkCanvas). https://claude.ai/code/session_01TWJsWThh3jbpCvPtxZhh3X
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Places a canvas layer between the page background and content. Ink blobs spawn at the cursor, expand with a radial gradient, drift, and fade — creating a 水墨 (Chinese ink wash) feel. Color tracks the active theme selection in real time.
https://claude.ai/code/session_01TWJsWThh3jbpCvPtxZhh3X