Skip to content
TheChatArchiveThe Chat Archive
o3-mini· OpenAIHugging Face LMArena Human Preference 140K

write detailed svg code for butterfly

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.0-flash-001’s answer.
  1. User

    write detailed svg code for butterfly

  2. Assistant

    Below is an SVG example that draws a detailed butterfly with four gracefully curved wings, a textured body with antennae, and decorative “eyespot” details on each wing. You can copy the code into an HTML document or an SVG file to view the artwork.

    <svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
    
      <!-- Define gradients for the wings -->
      <defs>
        <linearGradient id="leftWingGradient" x1="0%" y1="0%" x2="0%" y2="100%">
          <stop offset="0%" style="stop-color:#FF66CC; stop-opacity:1"/>
          <stop offset="100%" style="stop-color:#FF0099; stop-opacity:1"/>
        </linearGradient>
        <linearGradient id="rightWingGradient" x1="0%" y1="0%" x2="0%" y2="100%">
          <stop offset="0%" style="stop-color:#66CCFF; stop-opacity:1"/>
          <stop offset="100%" style="stop-color:#0099FF; stop-opacity:1"/>
        </linearGradient>
      </defs>
      
      <!-- Left Top Wing -->
      <path d="M250,250 
               C180,200 120,150 100,180 
               C130,220 200,260 250,250 Z" 
            fill="url(#leftWingGradient)" stroke="black" stroke-width="2"/>
            
      <!-- Left Bottom Wing -->
      <path d="M250,250 
               C180,300 120,350 100,320 
               C130,280 200,260 250,250 Z" 
            fill="url(#leftWingGradient)" stroke="black" stroke-width="2"/>
            
      <!-- Right Top Wing -->
      <path d="M250,250 
               C320,200 380,150 400,180 
               C370,220 300,260 250,250 Z" 
            fill="url(#rightWingGradient)" stroke="black" stroke-width="2"/>
             
      <!-- Right Bottom Wing -->
      <path d="M250,250 
               C320,300 380,350 400,320 
               C370,280 300,260 250,250 Z" 
            fill="url(#rightWingGradient)" stroke="black" stroke-width="2"/>
             
      <!-- Butterfly Body -->
      <rect x="245" y="180" width="10" height="140" fill="#8b4513" stroke="black" stroke-width="2"/>
      
      <!-- Antennae -->
      <path d="M250,180 Q230,150 210,140" stroke="black" stroke-width="2" fill="none"/>
      <path d="M250,180 Q270,150 290,140" stroke="black" stroke-width="2" fill="none"/>
      
      <!-- Wing Patterns (Large Eyespot circles) -->
      <circle cx="120" cy="170" r="12" fill="white" stroke="black" stroke-width="2"/>
      <circle cx="380" cy="170" r="12" fill="white" stroke="black" stroke-width="2"/>
      <circle cx="120" cy="330" r="12" fill="white" stroke="black" stroke-width="2"/>
      <circle cx="380" cy="330" r="12" fill="white" stroke="black" stroke-width="2"/>
      
      <!-- Inner details for the eyespots -->
      <circle cx="120" cy="170" r="6" fill="#FF66CC" stroke="black" stroke-width="1"/>
      <circle cx="380" cy="170" r="6" fill="#66CCFF" stroke="black" stroke-width="1"/>
      <circle cx="120" cy="330" r="6" fill="#FF66CC" stroke="black" stroke-width="1"/>
      <circle cx="380" cy="330" r="6" fill="#66CCFF" stroke="black" stroke-width="1"/>
      
    </svg>
    

    Explanation

    • Gradients:
      Two <linearGradient> elements in the <defs> section provide a smooth color transition for the left (pinkish) and right (bluish) wings.

    • Wings:
      Each wing is drawn using a <path> element with a series of cubic Bézier curves (C) that create a flowing, organic shape. The left and right wings are mirror images of one another.

    • Body and Antennae:
      A vertical <rect> stands in for the butterfly’s body. Two curved <path> elements represent the antennae at the top of the body.

    • Eyespot Details:
      Four circles on the wings (two on each side) simulate decorative eyespots. Each eyespot features a larger white circle with a smaller colored circle inside for added detail.

    Feel free to adjust the coordinates, curves, colors, and other attributes to further refine your butterfly illustration. Enjoy experimenting with SVG!

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