o1-preview-2024-09-12· OpenAI
WildChat-4.8M (AI2)
Generate a svg code for butterfly
- User
Generate a svg code for butterfly
- Assistant
Certainly! Here's an SVG code snippet that draws a simple butterfly:
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <!-- Left Wing --> <path d="M100,100 C40,20 40,180 100,100" fill="pink" stroke="purple" stroke-width="2"/> <!-- Right Wing --> <path d="M100,100 C160,20 160,180 100,100" fill="lightblue" stroke="blue" stroke-width="2"/> <!-- Body --> <rect x="95" y="80" width="10" height="40" fill="black"/> <!-- Antennae --> <line x1="100" y1="80" x2="85" y2="60" stroke="black" stroke-width="2"/> <line x1="100" y1="80" x2="115" y2="60" stroke="black" stroke-width="2"/> <!-- Circles on Left Wing --> <circle cx="70" cy="80" r="10" fill="purple"/> <circle cx="60" cy="120" r="5" fill="purple"/> <!-- Circles on Right Wing --> <circle cx="130" cy="80" r="10" fill="blue"/> <circle cx="140" cy="120" r="5" fill="blue"/> </svg>