用svg画个蝴蝶
- User
用svg画个蝴蝶
Assistant
以下是一个使用SVG绘制蝴蝶的示例代码:
<svg width="300" height="200" xmlns="http://www.w3.org/2000/svg"> <!-- 蝴蝶身体 --> <ellipse cx="150" cy="100" rx="20" ry="50" fill="#8B4513" /> <!-- 左翅膀 --> <path d="M100,50 Q50,25 30,10 Q10,50 50,75 Q30,100 10,125 Q50,110 100,100 Z" fill="#FF69B4" opacity="0.7" /> <!-- 右翅膀 --> <path d="M200,50 Q250,25 270,10 Q290,50 250,75 Q270,100 290,125 Q250,110 200,100 Z" fill="#00CED1" opacity="0.7" /> <!-- 触角 --> <line x1="140" y1="50" x2="120" y2="20" stroke="black" stroke-width="2" /> <line x1="160" y1="50" x2="180" y2="20" stroke="black" stroke-width="2" /> <!-- 眼睛 --> <circle cx="140" cy="80" r="5" fill="black" /> <circle cx="160" cy="80" r="5" fill="black" /> </svg>这段代码创建了一个简单的蝴蝶SVG图像,包括:
- 椭圆形的身体
- 左右对称的翅膀(使用path绘制)
- 两根触角
- 两只眼睛
你可以调整颜色、大小和位置来自定义蝴蝶的外观。
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.