Skip to content
TheChatArchiveThe Chat Archive
Qwenqwen-max-2025-01-25· Alibaba (Qwen)Hugging Face LMArena Human Preference 140K

用svg画个蝴蝶。注意细节

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with grok-3-mini-beta’s answer.
  1. User

    用svg画个蝴蝶。注意细节

  2. Qwen Assistant

    要用SVG画一个蝴蝶,可以通过细致的路径和形状来表现蝴蝶的细节。以下是一个完整的SVG代码示例,展示了一只具有对称翅膀、触角和身体的蝴蝶。通过精心设计路径,可以表现出蝴蝶的优雅形态。

    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" width="400" height="400">
      <!-- 蝴蝶的身体 -->
      <ellipse cx="100" cy="100" rx="5" ry="40" fill="#4B3F3F" />
      
      <!-- 触角 -->
      <line x1="95" y1="60" x2="85" y2="40" stroke="#4B3F3F" stroke-width="2" />
      <line x1="105" y1="60" x2="115" y2="40" stroke="#4B3F3F" stroke-width="2" />
      <circle cx="85" cy="40" r="2" fill="#4B3F3F" />
      <circle cx="115" cy="40" r="2" fill="#4B3F3F" />
    
      <!-- 左翅膀 -->
      <path d="M 100,100 
               C 50,80 30,120 100,140 
               C 70,170 50,200 100,180 
               C 80,160 90,140 100,100 Z" 
            fill="#FF69B4" stroke="#FF1493" stroke-width="2" />
    
      <!-- 右翅膀 -->
      <path d="M 100,100 
               C 150,80 170,120 100,140 
               C 130,170 150,200 100,180 
               C 120,160 110,140 100,100 Z" 
            fill="#FF69B4" stroke="#FF1493" stroke-width="2" />
    
      <!-- 左下翅膀 -->
      <path d="M 100,100 
               C 50,120 30,160 100,160 
               C 70,190 50,220 100,200 
               C 80,180 90,160 100,100 Z" 
            fill="#FFB6C1" stroke="#FF1493" stroke-width="2" />
    
      <!-- 右下翅膀 -->
      <path d="M 100,100 
               C 150,120 170,160 100,160 
               C 130,190 150,220 100,200 
               C 120,180 110,160 100,100 Z" 
            fill="#FFB6C1" stroke="#FF1493" stroke-width="2" />
    
      <!-- 翅膀上的花纹 -->
      <path d="M 80,120 C 70,130 60,140 80,150 Z" fill="#FF1493" />
      <path d="M 120,120 C 130,130 140,140 120,150 Z" fill="#FF1493" />
      <path d="M 80,170 C 70,180 60,190 80,200 Z" fill="#FF1493" />
      <path d="M 120,170 C 130,180 140,190 120,200 Z" fill="#FF1493" />
    </svg>
    

    代码说明:

    1. 身体部分:

      • 使用<ellipse>绘制蝴蝶的身体,设置为细长的椭圆形。
      • 使用<line>和<circle>绘制触角,触角末端加上小圆点以增加细节。
    2. 翅膀部分:

      • 左右翅膀使用<path>绘制,通过贝塞尔曲线(C命令)定义翅膀的弯曲形状。
      • 上下两对翅膀分别填充不同的颜色(粉色系),并通过stroke添加边框,使翅膀更有层次感。
    3. 花纹部分:

      • 在翅膀上添加了几个简单的三角形花纹,使用<path>绘制,填充深粉色,模拟蝴蝶翅膀上的图案。
    4. 颜色选择:

      • 主体颜色选择了粉色系(#FF69B4和#FFB6C1),边框使用更深的粉色(#FF1493),使蝴蝶看起来更加生动。

    效果:

    运行上述代码后,你将看到一只对称的蝴蝶,翅膀上有花纹,整体设计精致且美观。你可以根据需要调整颜色、大小或形状,进一步优化细节。

    希望这个SVG代码能满足你的需求!如果还有其他问题,请随时告诉我。

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.