Halo — component for shaders (html)
For AI agents: find the right skill in one call —
curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add.mdto its path. Before generating anything, show the person the options on the use-case page.
An iridescent ring of pink, white and teal light swirling slowly on a deep navy field
- Install:
npm i vanta - Registry: vanta · Framework: html · License: MIT
- Docs and preview: https://www.vantajs.com/?effect=halo
- Source: https://github.com/tengbao/vanta/blob/master/src/vanta.halo.js
- Example: https://skills.varg.ai/previews/lib-vanta-halo.mp4?v=49221 (Rendered by varg from the library’s own code (Vanta.js · rendered by varg))
- Time: Drive from the frame. Runs on its own clock (requestAnimationFrame, timers, springs or CSS). Drive it from frame / fps before rendering, or the render drifts.
- Runs: local render, free
- Aspect: any
Prompt that renders it frame-exact
Use the Vanta.js Halo effect (https://www.vantajs.com/?effect=halo, MIT, source github.com/tengbao/vanta/blob/master/src/vanta.halo.js) as a full-frame background with a logo, product shot or one word inside the ring. Load three.js r134 and [email protected]/dist/vanta.halo.min.js and mount VANTA.HALO with mouse, touch and gyro controls off. Halo feeds each frame back into the next through two render targets, so it must be rendered in order: cancel effect.req and per video frame advance effect.uniforms.iTime.value by speed/fps, then call effect.onUpdate() and effect.renderer.render(effect.scene, effect.camera), starting from frame 0. Set baseColor, color2 and backgroundColor from the brand, size 0.8–1.5 for the ring, and xOffset/yOffset to place it (it drifts a little left of centre in 16:9 by default).
Used in
- Lyric video
- Audio visualizer
- Logo sting
- Brand intro & bumper
- Stream overlay package
- News broadcast package
- Countdown & launch timer
- Shader loop
More shaders
- Blob —
npx hyperframes add blob - Chrome Orb —
npx hyperframes add chrome-orb - Color Wheel —
npx hyperframes add color-wheel - Falling Lines —
npx hyperframes add falling-lines - Frost —
npx hyperframes add frost - Godrays —
npx hyperframes add godrays