Opus 5.5 — 通用Intermediate
交互式镜头实验室(光圈与景深)
在 Canvas 上模拟薄透镜对焦、f 值、焦距与画幅,可拖拽主体并实时景深模糊。
Coding & simulationphysicsopticssimulationcanvas
查看详情用 Canvas 与滚动叙事讲解自注意力、多头注意力与前馈层,实时标注张量维度并高亮 token。
You are a senior ML educator and creative coder. Deliver ONE self-contained index.html (no build step) that explains the Transformer encoder block for developers who know matrix math but not the architecture. Requirements: - Dark theme, readable typography, responsive layout. - Sections: token embedding → positional encoding → multi-head self-attention (show Q/K/V projections) → residual + layer norm → FFN → output. - Use HTML5 Canvas or SVG for diagrams; animate attention weights on hover or scrub. - Include a tiny 4-token demo sentence; clicking a token highlights its attention row. - Add a "shape inspector" panel listing tensor ranks at each step (batch, seq, d_model, heads). - No external CDN except optional fonts; inline all JS/CSS. - Comment the code where math maps to drawing code. - End with a checklist the reader can use to verify understanding.
分阶段生成:先布局再逐块实现注意力动画。每步截图留档。公式对照 Jay Alammar 或原论文核对。
在 Canvas 上模拟薄透镜对焦、f 值、焦距与画幅,可拖拽主体并实时景深模糊。
为抽卡式奖励时刻生成 Canvas/WebGL 粒子、屏闪、震屏与稀有度色带,目标中端机 60fps。
在改动支付/积分等生产代码前,让 Opus 5.5 提取循环不变量、前后条件与安全重构步骤。
可复用的系统提示词:缓动曲线、构图节奏、动画 12 原则、节拍对齐与 UI/品牌动效交付规范。