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 o3-2025-04-16’s answer.
  1. User

    用svg画个蝴蝶

  2. Qwen Assistant

    要用SVG绘制一只蝴蝶,可以通过组合多个基本形状(如圆形、椭圆、路径等)来实现。以下是一个简单的SVG代码示例,展示如何绘制一只简化的蝴蝶:

    <svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
      <!-- 蝴蝶身体 -->
      <ellipse cx="100" cy="100" rx="5" ry="20" fill="black" />
      
      <!-- 左翅膀 -->
      <path d="M100 100 C60 60, 40 100, 100 140 S140 140, 100 100 Z" fill="red" />
      
      <!-- 右翅膀 -->
      <path d="M100 100 C140 60, 160 100, 100 140 S60 140, 100 100 Z" fill="blue" />
      
      <!-- 装饰点 - 左翅膀 -->
      <circle cx="80" cy="90" r="5" fill="white" />
      <circle cx="70" cy="110" r="5" fill="white" />
      
      <!-- 装饰点 - 右翅膀 -->
      <circle cx="120" cy="90" r="5" fill="white" />
      <circle cx="130" cy="110" r="5" fill="white" />
    </svg>
    

    解释:

    1. 身体:使用了一个椭圆 (<ellipse>) 来表示蝴蝶的身体。
    2. 翅膀:使用了两个 <path> 元素来绘制左右翅膀。<path> 的 d 属性定义了路径的形状,这里使用了贝塞尔曲线 (C 和 S) 来创建平滑的曲线。
      • 左翅膀从中心点 (100, 100) 开始,通过控制点形成一个弯曲的翅膀。
      • 右翅膀与左翅膀对称。
    3. 装饰点:在翅膀上添加了一些小圆圈 (<circle>) 作为装饰。

    效果:

    • 左翅膀是红色,右翅膀是蓝色。
    • 蝴蝶的身体是黑色的椭圆。
    • 翅膀上有白色的小圆点作为装饰。

    你可以根据需要调整颜色、形状和大小,创造出更复杂的蝴蝶图案!

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