o3-mini· OpenAI
LMArena Human Preference 140K
用svg画个蝴蝶。注意细节
- User
用svg画个蝴蝶。注意细节
- Assistant
下面提供一个详细的 SVG 代码示例,通过路径、渐变和细节装饰绘制出一只精美的蝴蝶。你可以直接将如下代码保存为
.svg文件或在 HTML 页面中使用:<svg width="500" height="500" viewBox="-250 -250 500 500" xmlns="http://www.w3.org/2000/svg"> <!-- 定义渐变 --> <defs> <!-- 蝴蝶翅膀渐变(从粉色过渡到金色) --> <radialGradient id="wingGradient" cx="50%" cy="50%" r="50%"> <stop offset="0%" style="stop-color:#FF69B4;stop-opacity:1" /> <stop offset="100%" style="stop-color:#FFD700;stop-opacity:1" /> </radialGradient> <!-- 蝴蝶身体渐变 --> <linearGradient id="bodyGradient" x1="0%" y1="0%" x2="0%" y2="100%"> <stop offset="0%" style="stop-color:#8B4513;stop-opacity:1" /> <stop offset="100%" style="stop-color:#D2691E;stop-opacity:1" /> </linearGradient> </defs> <!-- 左上翅:从身体起点出发,利用贝塞尔曲线绘制大而富有层次的曲线 --> <path d="M -10,0 C -140,-40, -140,-140, 0,-140 C 20,-130, 20,-110, 10,-80 C -30,-90, -30,-50, -10,0" fill="url(#wingGradient)" stroke="#FF1493" stroke-width="2"/> <!-- 左下翅 --> <path d="M -10,0 C -140,40, -140,140, 0,140 C 20,130, 20,110, 10,80 C -30,90, -30,50, -10,0" fill="url(#wingGradient)" stroke="#FF1493" stroke-width="2"/> <!-- 右上翅:利用对称性,右侧数字取正 --> <path d="M 10,0 C 140,-40, 140,-140, 0,-140 C -20,-130, -20,-110, -10,-80 C 30,-90, 30,-50, 10,0" fill="url(#wingGradient)" stroke="#FF1493" stroke-width="2"/> <!-- 右下翅 --> <path d="M 10,0 C 140,40, 140,140, 0,140 C -20,130, -20,110, -10,80 C 30,90, 30,50, 10,0" fill="url(#wingGradient)" stroke="#FF1493" stroke-width="2"/> <!-- 蝴蝶身体 --> <rect x="-5" y="-70" width="10" height="140" rx="5" ry="5" fill="url(#bodyGradient)" stroke="#8B4513" stroke-width="2"/> <!-- 蝴蝶触角 --> <path d="M -5,-70 Q -30,-100, -10,-120" fill="none" stroke="#8B4513" stroke-width="2" /> <path d="M 5,-70 Q 30,-100, 10,-120" fill="none" stroke="#8B4513" stroke-width="2" /> <!-- 添加翅膀细节——蝴蝶斑点 --> <circle cx="-50" cy="-90" r="10" fill="#FFF" stroke="#FF1493" stroke-width="2"/> <circle cx="50" cy="-90" r="10" fill="#FFF" stroke="#FF1493" stroke-width="2"/> <circle cx="-50" cy="90" r="10" fill="#FFF" stroke="#FF1493" stroke-width="2"/> <circle cx="50" cy="90" r="10" fill="#FFF" stroke="#FF1493" stroke-width="2"/> </svg>说明
-
渐变效果
- 采用了径向渐变 (
radialGradient) 为翅膀上色,使得中心颜色浓郁,向外逐渐过渡到金黄色。 - 身体部分使用线性渐变 (
linearGradient),增添立体感。
- 采用了径向渐变 (
-
翅膀构造
- 用
path指令结合贝塞尔曲线 (C) 绘制了充满动感的四片翅膀,每片轮廓都经过精心设计。 - 左右、上下翅经过对称设计,保证整体平衡。
- 用
-
细节装饰
- 在翅膀上添加了白色的斑点(利用
circle元素),并用红粉色描边,增添自然与美感。 - 蝴蝶触角也采用二次贝塞尔曲线 (
Q) 绘制,显得生动灵动。
- 在翅膀上添加了白色的斑点(利用
直接把上述代码复制到支持 SVG 的环境中即可看到这只精美的蝴蝶图案。如需进一步调整细节(如颜色、曲线形状等),可以修改相应数值和渐变参数。希望你喜欢这个设计!
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
gemini-2.0-flash-001Compare side by side →
- grok-3-preview-02-24Compare side by side →
- grok-3-preview-02-24Compare side by side →
gemma-3-27b-itCompare side by side →
- grok-3-mini-betaCompare side by side →
qwen-max-2025-01-25Compare side by side →
- chatgpt-4o-latest-20250326Compare side by side →
gemma-3-27b-itCompare side by side →
- gpt-4o-2024-11-20Compare side by side →
- grok-3-preview-02-24Compare side by side →
gemini-2.0-flash-thinking-exp-01-21Compare side by side →
llama-4-maverick-17b-128e-instructCompare side by side →