Below is a detailed SVG code for a butterfly. You can copy and paste this code into an HTML file or an SVG editor to view the butterfly.
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 500 500"
width="500"
height="500"
>
<!-- Butterfly Body -->
<g id="body">
<ellipse cx="250" cy="250" rx="20" ry="60" fill="#4B4B4B" />
<circle cx="250" cy="180" r="15" fill="#4B4B4B" />
<line x1="250" y1="165" x2="250" y2="140" stroke="#4B4B4B" stroke-width="3" />
<circle cx="245" cy="135" r="5" fill="#4B4B4B" />
<circle cx="255" cy="135" r="5" fill="#4B4B4B" />
</g>
<!-- Left Upper Wing -->
<g id="left-upper-wing">
<path
d="M250 200 C150 100, 50 150, 100 250 C50 350, 150 400, 250 300 Z"
fill="orange"
stroke="black"
stroke-width="2"
/>
<circle cx="150" cy="200" r="20" fill="black" />
<circle cx="120" cy="250" r="15" fill="black" />
<circle cx="180" cy="300" r="10" fill="black" />
</g>
<!-- Right Upper Wing -->
<g id="right-upper-wing">
<path
d="M250 200 C350 100, 450 150, 400 250 C450 350, 350 400, 250 300 Z"
fill="orange"
stroke="black"
stroke-width="2"
/>
<circle cx="350" cy="200" r="20" fill="black" />
<circle cx="380" cy="250" r="15" fill="black" />
<circle cx="320" cy="300" r="10" fill="black" />
</g>
<!-- Left Lower Wing -->
<g id="left-lower-wing">
<path
d="M250 300 C150 350, 50 300, 100 400 C50 450, 150 500, 250 400 Z"
fill="yellow"
stroke="black"
stroke-width="2"
/>
<circle cx="150" cy="350" r="15" fill="black" />
<circle cx="120" cy="400" r="10" fill="black" />
</g>
<!-- Right Lower Wing -->
<g id="right-lower-wing">
<path
d="M250 300 C350 350, 450 300, 400 400 C450 450, 350 500, 250 400 Z"
fill="yellow"
stroke="black"
stroke-width="2"
/>
<circle cx="350" cy="350" r="15" fill="black" />
<circle cx="380" cy="400" r="10" fill="black" />
</g>
</svg>
Features of the SVG:
- Body: The butterfly's body is represented by an ellipse and a circle for the head, with antennae extending upward.
- Wings: The butterfly has four wings:
- Upper wings are orange with black spots.
- Lower wings are yellow with black spots.
- Details: The wings have a black outline, and the spots add a realistic touch.
You can modify the colors, shapes, or sizes to customize the butterfly further!