WIP: Add mesh gradient audio visualizer to agents-ui#1359
Draft
thomasyuill-livekit wants to merge 2 commits into
Draft
WIP: Add mesh gradient audio visualizer to agents-ui#1359thomasyuill-livekit wants to merge 2 commits into
thomasyuill-livekit wants to merge 2 commits into
Conversation
Adds AgentAudioVisualizerMeshGradient, a shader-based visualizer that renders an animated mesh gradient of blended color blobs, reacting to agent state and live microphone volume. Includes scale, rotation, distortion, swirl, and grain controls, a Storybook story with several color presets, registry entries, and tests. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Contributor
size-limit report 📦
|
Rotation now spins continuously while speaking, and scale pulses while thinking, using the same motion-based animation pattern as distortion and swirl. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Overview
Adds
AgentAudioVisualizerMeshGradient, a new shader-based audio visualizer forpackages/shadcnthat renders an animated mesh gradient of blended color blobs, reactive to agent state and live microphone volume — joining the existing Aura/Wave/Grid/Bar/Radial visualizer family.Summary of changes
agent-audio-visualizer-mesh-gradient.tsx— WebGL1/GLSL shader (adapted frompaper-design/shaders' mesh-gradient algorithm) rendered via the existingReactShaderToywrappercolors,grain,scale,rotation,distortion,swirl,size,state,audioTrackuse-agent-audio-visualizer-mesh-gradient.ts— mapsAgentStateto speed/distortion/swirl targets, with live volume driving distortion whilespeakingDefault,Sunset,Ocean,Aurora,Monochromecolor presets and range controls for all shader paramsagent-audio-visualizer-mesh-gradiententry inregistry.json, added to theallbundleTesting
cd packages/shadcn && pnpm test— all 301 tests passpnpm --filter docs-storybook dev→ Agents UI → AgentAudioVisualizerMeshGradient — cycle through the color presets,statevalues, and the scale/rotation/distortion/swirl/grain controls