xml Copy code
<svg width="600" height="400" viewBox="0 0 600 400" xmlns="http://www.w3.org/2000/svg">
<defs>
<!-- Wing gradients -->
<linearGradient id="upperWingLeft" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#4A148C"/>
<stop offset="50%" stop-color="#8E24AA"/>
<stop offset="100%" stop-color="#E1BEE7"/>
</linearGradient>
<linearGradient id="upperWingRight" x1="1" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#4A148C"/>
<stop offset="50%" stop-color="#8E24AA"/>
<stop offset="100%" stop-color="#E1BEE7"/>
</linearGradient>
<linearGradient id="lowerWing" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#FF6D00"/>
<stop offset="50%" stop-color="#FF9800"/>
<stop offset="100%" stop-color="#FFE0B2"/>
</linearGradient>
<!-- Body gradient -->
<linearGradient id="bodyGradient" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#212121"/>
<stop offset="100%" stop-color="#757575"/>
</linearGradient>
</defs>
<!-- Background -->
<rect width="100%" height="100%" fill="#F5F5F5"/>
<!-- Left Upper Wing -->
<path d="M300,200
C250,100 150,80 100,150
C120,220 180,250 200,300
C220,250 260,220 300,200 Z"
fill="url(#upperWingLeft)" stroke="#311B92" stroke-width="1"/>
<!-- Right Upper Wing (mirrored) -->
<g transform="scale(-1,1) translate(-600,0)">
<path d="M300,200
C250,100 150,80 100,150
C120,220 180,250 200,300
C220,250 260,220 300,200 Z"
fill="url(#upperWingRight)" stroke="#311B92" stroke-width="1"/>
</g>
<!-- Left Lower Wing -->
<path d="M250,300
C220,280 200,320 180,340
C200,360 230,370 250,350
C240,340 245,320 250,300 Z"
fill="url(#lowerWing)" stroke="#E65100" stroke-width="0.5"/>
<!-- Right Lower Wing (mirrored) -->
<g transform="scale(-1,1) translate(-600,0)">
<path d="M250,300
C220,280 200,320 180,340
C200,360 230,370 250,350
C240,340 245,320 250,300 Z"
fill="url(#lowerWing)" stroke="#E65100" stroke-width="0.5"/>
</g>
<!-- Wing Patterns -->
<!-- Upper wing veins (left) -->
<path d="M150,150 L160,200 L170,250" stroke="#311B92" stroke-width="1" fill="none"/>
<path d="M180,180 Q200,220 220,260" stroke="#311B92" stroke-width="1" fill="none"/>
<!-- Eyespot on upper wing -->
<ellipse cx="140" cy="140" rx="8" ry="12" fill="#FFEB3B">
<animate attributeName="opacity" values="0.8;0.5;0.8" dur="2s" repeatCount="indefinite"/>
</ellipse>
<!-- Body -->
<g transform="translate(280,200)">
<!-- Thorax -->
<rect x="-10" y="-15" width="20" height="30" rx="5" fill="url(#bodyGradient)"/>
<!-- Abdomen -->
<path d="M-5,15
Q-10,40 -5,60
Q0,65 5,60
Q10,40 5,15 Z"
fill="url(#bodyGradient)" stroke="#424242" stroke-width="0.5"/>
<!-- Head -->
<circle cx="0" cy="0" r="10" fill="#212121"/>
<!-- Eyes -->
<circle cx="-3" cy="-3" r="2" fill="#FFF"/>
<circle cx="3" cy="-3" r="2" fill="#FFF"/>
</g>
<!-- Antennae -->
<path d="M275,195
C270,180 260,170 255,165
C250,170 245,180 245,195"
stroke="#212121" stroke-width="1" fill="none"/>
<path d="M325,195
C330,180 340,170 345,165
C350,170 355,180 355,195"
stroke="#212121" stroke-width="1" fill="none"/>
<!-- Wing Texture (subtle) -->
<g opacity="0.1">
<circle cx="130" cy="160" r="2" fill="#000"/>
<circle cx="160" cy="200" r="1.5" fill="#000"/>
<circle cx="190" cy="240" r="1" fill="#000"/>
</g>
</svg>
This design balances realism with scalability—ideal for illustrations, icons, or educational materials! 🦋