Skip to content
The Chat Archive
gemini-2.0-flash-001· Google LMArena Human Preference 140K

Generate an SVG of a pelican riding a bicycle.

  1. User

    Generate an SVG of a pelican riding a bicycle.

  2. Assistant
    <svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
    
      <!-- Pelican Body -->
      <path d="M 30 100 C 30 80, 50 60, 70 60 C 90 60, 110 80, 110 100 C 110 120, 90 140, 70 140 C 50 140, 30 120, 30 100 Z" fill="#F0F0F0" stroke="black" stroke-width="2"/>
    
      <!-- Pelican Head and Beak -->
      <path d="M 110 100 C 110 80, 130 60, 150 60 C 160 60, 170 70, 170 80 L 170 110 C 170 120, 160 130, 150 130 C 130 130, 110 110, 110 100 Z" fill="#F0F0F0" stroke="black" stroke-width="2"/>
      <path d="M 170 80 L 190 95 L 170 110" fill="none" stroke="orange" stroke-width="3" stroke-linecap="round"/>
    
      <!-- Pelican Eye -->
      <circle cx="135" cy="75" r="5" fill="black"/>
    
      <!-- Bicycle Frame -->
      <path d="M 60 140 L 140 140 M 80 140 L 100 100 L 120 140 M 100 100 L 140 140" stroke="blue" stroke-width="3" stroke-linecap="round"/>
    
      <!-- Bicycle Wheels -->
      <circle cx="60" cy="140" r="20" fill="none" stroke="black" stroke-width="3"/>
      <circle cx="140" cy="140" r="20" fill="none" stroke="black" stroke-width="3"/>
    
      <!-- Handlebars -->
      <path d="M 120 60 L 140 50 L 160 60" fill="none" stroke="brown" stroke-width="3" stroke-linecap="round"/>
      <path d="M 120 60 L 80 50 L 60 60" fill="none" stroke="brown" stroke-width="3" stroke-linecap="round"/>
    
      <!-- Connecting Rod (Pelican to Handlebars - Basic) -->
      <path d="M 70 60 L 100 60" stroke="black" stroke-width="2"/>
    
    
    </svg>
    

    Explanation:

    1. <svg> element: Defines the SVG canvas with width, height, and viewBox. viewBox="0 0 200 200" means the SVG content will scale to fit within a 200x200 area. This helps maintain aspect ratio.
    2. Pelican Body: A path is used to draw the pelican's body as a roughly oval shape. M moves the pen to the starting point, and C defines a cubic Bezier curve. fill sets the color, stroke the outline, and stroke-width the outline's thickness. I used a light gray (#F0F0F0).
    3. Pelican Head and Beak: Similar to the body, paths are used to create the head and beak. The beak is orange and uses rounded line endings.
    4. Pelican Eye: A simple circle.
    5. Bicycle Frame: The frame is drawn using line segments. M moves the pen, and L draws a line to the specified point. stroke-linecap="round" gives the lines rounded ends.
    6. Bicycle Wheels: Two circles are used for the wheels.
    7. Handlebars: Lines are used to make the handlebars.
    8. Connecting Rod: A simple line to vaguely suggest the pelican is holding the handlebars.

    How to use this code:

    1. Copy the entire code snippet above.
    2. Save it as an .svg file (e.g., pelican_bicycle.svg). Make sure your text editor saves it as plain text.
    3. Open the .svg file in a web browser. Most browsers support viewing SVG files directly.
    4. Alternatively, you can embed the code directly into an HTML document within the <svg> tags.

    Customization:

    • Colors: Change the fill and stroke attributes to adjust the colors of the pelican and bicycle.
    • Sizes and Positions: Modify the coordinates in the d attribute of the <path> elements and the cx, cy, and r attributes of the <circle> elements to adjust the size and position of the elements.
    • Detail: Add more shapes and details (e.g., feathers, pedal, saddle) to make the pelican and bicycle more realistic. You can use online SVG editors (like Inkscape or Boxy SVG) to make editing easier.
    • Animation: You could add CSS or JavaScript animation to make the pelican pedal the bicycle!
    • Stroke Width: Adjust the stroke-width attribute for different line thicknesses.
    • Styling: You can use CSS to style the SVG elements for more advanced control over their appearance.
    • Background: Add a <rect> element at the beginning of the SVG code (before the pelican and bicycle) to create a background.

    This gives you a basic pelican on a bicycle. Remember, SVG is vector-based, so it scales well without losing quality. Have fun experimenting!

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

Generate an SVG of a pelican riding a bicycle. · The Chat Archive