webgl-aurora-veil
它能做什么
这段代码会在星空中创建一个漂亮的极光动画。你可以移动鼠标,让光带随之摇曳。
适用场景
- ✓用视觉效果装饰网页。
- ✓为项目创建动态背景。
- ✓展示浏览器中的图形技术。
技能链接
https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/webgl-aurora-veil/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我为网站做一个极光动画。”
每周 5 个新技能,1 分钟读完。
工作原理
它使用一种名为 WebGL2 的技术,直接在你的浏览器中绘制光线。当你移动鼠标时,代码会调整光线的位置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Aurora Veil
Produce a single self-contained index.html — A self-contained WebGL2 hero: layered aurora light curtains warped over a night sky scattered with stars; move the cursor to sway the veil.
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-aurora-veil/
├── 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?
它是一种能在网页浏览器中直接绘制复杂图形和动画的技术,会利用你显卡的性能。
要看到这个动画,我需要安装什么吗?
不需要,一切都直接在浏览器中运行。你只需要一个包含这段代码的 HTML 文件。
我可以更改极光的颜色吗?
原始代码不太容易更改颜色,但程序员可以对其进行修改来实现。
详情
作者的原始描述
A self-contained WebGL2 hero: layered aurora light curtains warped over a night sky scattered with stars; move the cursor to sway the veil.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1051
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …