# Rings — component for backgrounds & gradients (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 `.md` to its path. Before generating anything, show the person the options on the use-case page.

Neon arcs in green, pink, orange and blue orbiting a tangled core of rings, tilted in 3D on charcoal

- **Install:** `npm i vanta`
- **Registry:** vanta · **Framework:** html · **License:** MIT
- **Docs and preview:** https://www.vantajs.com/?effect=rings
- **Source:** https://github.com/tengbao/vanta/blob/master/src/vanta.rings.js
- **Example:** https://skills.varg.ai/previews/lib-vanta-rings.mp4?v=60712 (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 Rings effect (https://www.vantajs.com/?effect=rings, MIT, source github.com/tengbao/vanta/blob/master/src/vanta.rings.js) as a full-frame background for a loading, progress or launch-countdown beat. Load three.js r134 and vanta@0.5.24/dist/vanta.rings.min.js and mount VANTA.RINGS with mouse, touch and gyro controls off. Each ring adds its own rotation step on every requestAnimationFrame, so seed Math.random before init (ring sizes and colors are random), cancel effect.req and step it yourself 60/fps times per video frame, in order from frame 0: each step adds 1 to effect.t, calls effect.onUpdate() and then effect.renderer.render(effect.scene, effect.camera). Set backgroundColor and the base color from the brand; edit the effect's colors list if the default neon mix clashes.

## Used in

- [Year in review / Wrapped](https://skills.varg.ai/video/wrapped.md)
- [Lyric video](https://skills.varg.ai/video/lyric-video.md)
- [Karaoke video](https://skills.varg.ai/video/karaoke.md)
- [Logo sting](https://skills.varg.ai/video/logo-sting.md)
- [Title sequence](https://skills.varg.ai/video/title-sequence.md)
- [Brand guidelines film](https://skills.varg.ai/video/brand-guidelines.md)
- [Stream overlay package](https://skills.varg.ai/video/stream-overlay.md)
- [Shader loop](https://skills.varg.ai/video/shader-loop.md)

## More backgrounds & gradients

- [Aurora](https://skills.varg.ai/component/hf.aurora.md) — `npx hyperframes add aurora`
- [Aurora Drift](https://skills.varg.ai/component/hf.aurora-drift.md) — `npx hyperframes add aurora-drift`
- [Flowing Gradient](https://skills.varg.ai/component/hf.flowing-gradient.md) — `npx hyperframes add flowing-gradient`
- [Mesh Gradient](https://skills.varg.ai/component/hf.mesh-gradient.md) — `npx hyperframes add mesh-gradient`
- [Mesh Gradient Background](https://skills.varg.ai/component/hf.mesh-gradient-bg.md) — `npx hyperframes add mesh-gradient-bg`
- [Minimal Gradient Background](https://skills.varg.ai/component/hf.mk-background.md) — `npx hyperframes add mk-background`
