webgl-liquid-iridescence
它能做什么
这段代码能做出一种漂亮而生动的动画,看起来像水面上的油膜,色彩明亮,还有发光的细丝。你可以移动鼠标与它互动,改变动画的流动方式。
适用场景
- ✓用艺术感的效果装点网站。
- ✓做一个有趣的动态背景。
- ✓展示一个令人印象深刻的视觉效果。
技能链接
https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/webgl-liquid-iridescence/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一个带光效的“水面油膜”动画。”
每周 5 个新技能,1 分钟读完。
工作原理
它使用 WebGL2 技术直接在浏览器中绘制图形。动画会响应你的鼠标移动,改变屏幕上光与色彩的呈现方式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Liquid Iridescence
Produce a single self-contained index.html — A self-contained WebGL2 hero: a living oil-on-water field brightened into iridescent caustic filaments; move the cursor to bend the flow.
Why this is a powered artifact
OpenDesign detects getContext('webgl2') / heavy WebGL and renders this file in powered preview (a cross-origin-isolated iframe). The full GPU + scroll pipeline runs; no opaque-sandbox workarounds are needed.
Resource map
webgl-liquid-iridescence/
├── SKILL.md ← you're reading this
├── example.html ← the complete, working artifact (READ FIRST)
└── (assets, if any)
Credits / attribution
- Original, self-contained (no third-party assets).
Keep any bundled LICENSE and on-screen credit intact. Replace imagery only with license-clean assets (original / AI, Lummi.ai, Unsplash/Pexels — never scraped imagery).
常见问题
什么是 WebGL2?
它是一种技术,可以利用显卡的性能,直接在网页浏览器中创建复杂的二维和三维图形。
“self-contained”是什么意思?
意思是这段代码可以独立运行,不需要其他外部文件或程序。
鼠标如何影响动画?
当你在动画上移动鼠标时,它会改变光“细丝”的方向和形状,就像你在搅动一摊油一样。
详情
作者的原始描述
A self-contained WebGL2 hero: a living oil-on-water field brightened into iridescent caustic filaments; move the cursor to bend the flow.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1058
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …