make detailed butterfly svg
- User
make detailed butterfly svg
Assistant
Okay, here is a detailed butterfly SVG code. This example creates a Monarch-like butterfly with distinct wing sections, veins, spots, and body segments.
Key Features:
- Structure: Uses groups (
<g>) for body, left wing, and right wing (mirrored) for organization. - Symmetry: Draws the left wing and its details, then uses
<use>with atransformto create a perfectly symmetrical right wing. - Detail: Includes:
- Segmented body (head, thorax, abdomen).
- Antennae with clubs.
- Forewings and hindwings with distinct shapes.
- Veins represented by paths with strokes.
- Spots (circles) along the wing edges.
- Larger colored patches within the wing cells.
- Styling: Uses CSS within
<defs><style>for easy color changes and cleaner code. - Accessibility: Includes
<title>and<desc>elements.
<svg width="300" height="250" viewBox="0 0 300 250" xmlns="http://www.w3.org/2000/svg"> <title>Detailed Butterfly SVG</title> <desc>A detailed representation of a butterfly, possibly resembling a Monarch, with orange wings, black veins and borders, and white spots.</desc> <defs> <style type="text/css"> <![CDATA[ .body { fill: #333333; stroke: #1a1a1a; stroke-width: 0.5; } .antenna { fill: none; stroke: #222222; stroke-width: 1.5; stroke-linecap: round; } .antenna-club { fill: #222222; stroke: none; } .wing-outline { fill: none; stroke: #000000; stroke-width: 1.5; } .wing-base-color { fill: #F58220; /* Orange */ } .wing-vein { fill: none; stroke: #000000; stroke-width: 1; } .wing-border { fill: #000000; stroke: none; } .wing-spot { fill: #FFFFFF; stroke: none; } .wing-cell-patch { fill: #FFA500; /* Lighter orange */ opacity: 0.8; } /* Specific styles if needed */ #forewing-left-outline { /* Custom styles */ } #hindwing-left-outline { /* Custom styles */ } ]]> </style> <!-- Define the left wing group to be reused --> <g id="left-wing"> <!-- === Left Forewing === --> <g id="forewing-left"> <!-- Base Color Area (slightly smaller than outline to let border show) --> <path class="wing-base-color" d="M 150,105 C 110,80 40,60 20,80 Q 5,110 15,140 C 30,170 70,180 110,165 L 145,125 Z" /> <!-- Cell Patches (Example) --> <path class="wing-cell-patch" d="M 120,120 Q 80,110 60,120 C 50,140 70,155 100,150 Z" /> <path class="wing-cell-patch" d="M 80,95 Q 50,90 40,100 C 35,120 55,135 75,130 Z" /> <!-- Veins --> <path class="wing-vein" d="M 148,115 Q 100,100 70,90" /> <path class="wing-vein" d="M 148,120 Q 90,120 50,130" /> <path class="wing-vein" d="M 145,125 Q 90,145 65,160" /> <path class="wing-vein" d="M 140,130 Q 110,160 90,170" /> <!-- Border Area (drawn over base color) --> <path class="wing-border" d="M 150,105 C 110,80 40,60 15,75 Q 0,110 10,145 C 25,178 70,185 115,170 L 145,128 Z M 20,80 Q 5,110 15,140 C 30,170 70,180 110,165 L 145,125 C 115,110 70,90 35,80 Z" fill-rule="evenodd" /> <!-- Outline (Optional - can define edges better) --> <path id="forewing-left-outline" class="wing-outline" d="M 150,105 C 110,80 40,60 15,75 Q 0,110 10,145 C 25,178 70,185 115,170 L 145,128 Z" /> <!-- Spots on Border --> <circle class="wing-spot" cx="30" cy="78" r="3" /> <circle class="wing-spot" cx="18" cy="100" r="3.5" /> <circle class="wing-spot" cx="15" cy="125" r="3" /> <circle class="wing-spot" cx="25" cy="150" r="3.5" /> <circle class="wing-spot" cx="45" cy="168" r="3" /> <circle class="wing-spot" cx="75" cy="176" r="3.5" /> <circle class="wing-spot" cx="100" cy="172" r="3" /> </g> <!-- === Left Hindwing === --> <g id="hindwing-left"> <!-- Base Color Area --> <path class="wing-base-color" d="M 150,125 C 130,150 100,190 80,210 Q 60,225 40,215 C 20,200 30,170 60,160 Q 90,155 145,135 Z" /> <!-- Cell Patches (Example) --> <path class="wing-cell-patch" d="M 110,150 C 80,165 60,180 55,195 C 65,205 90,200 115,180 Z" /> <!-- Veins --> <path class="wing-vein" d="M 148,130 Q 100,160 70,175" /> <path class="wing-vein" d="M 148,135 Q 90,180 60,200" /> <path class="wing-vein" d="M 140,140 Q 70,200 50,210" /> <!-- Border Area --> <path class="wing-border" d="M 150,125 C 130,150 100,190 75,215 Q 55,230 35,220 C 15,205 25,165 55,155 Q 90,150 145,135 Z M 80,210 Q 60,225 40,215 C 20,200 30,170 60,160 Q 90,155 145,135 C 120,160 90,190 80,210 Z" fill-rule="evenodd" /> <!-- Outline (Optional) --> <path id="hindwing-left-outline" class="wing-outline" d="M 150,125 C 130,150 100,190 75,215 Q 55,230 35,220 C 15,205 25,165 55,155 Q 90,150 145,135 Z" /> <!-- Spots on Border --> <circle class="wing-spot" cx="65" cy="218" r="3" /> <circle class="wing-spot" cx="45" cy="220" r="3.5" /> <circle class="wing-spot" cx="35" cy="205" r="3" /> <circle class="wing-spot" cx="38" cy="180" r="3.5" /> <circle class="wing-spot" cx="50" cy="162" r="3" /> </g> </g> </defs> <!-- === Draw the Wings === --> <!-- Left Wing (using the defined group) --> <use href="#left-wing" /> <!-- Right Wing (mirroring the left wing group) --> <!-- scale(-1, 1) mirrors horizontally around the Y-axis (x=0) --> <!-- translate(-300, 0) shifts it back because the coordinate system origin is top-left. We mirror around x=150, so we need to translate by 2 * 150 = 300 --> <use href="#left-wing" transform="translate(300, 0) scale(-1, 1)" /> <!-- === Butterfly Body === --> <g id="body-group"> <!-- Abdomen --> <path class="body" d="M 150,120 Q 145,150 145,180 C 145,210 150,220 150,220 C 150,220 155,210 155,180 Q 155,150 150,120 Z" /> <!-- Thorax --> <path class="body" d="M 150,85 C 140,90 135,105 140,125 L 150,130 L 160,125 C 165,105 160,90 150,85 Z" /> <!-- Head --> <ellipse class="body" cx="150" cy="80" rx="8" ry="10" /> <!-- Antennae --> <g id="antennae"> <!-- Left Antenna --> <path class="antenna" d="M 145,75 Q 120,50 100,30" /> <circle class="antenna-club" cx="100" cy="30" r="3" /> <!-- Right Antenna --> <path class="antenna" d="M 155,75 Q 180,50 200,30" /> <circle class="antenna-club" cx="200" cy="30" r="3" /> </g> </g> </svg>How to Use:
- Copy the entire code block above.
- Paste it into a plain text file.
- Save the file with an
.svgextension (e.g.,butterfly.svg). - You can open this file directly in most modern web browsers (Chrome, Firefox, Edge, Safari), or import it into vector graphics software like Adobe Illustrator or Inkscape for further editing.
Customization:
- Colors: Easily change the colors by modifying the hex codes in the
<style>section (e.g., change#F58220for the base wing color). - Shape: Modify the
dattributes in the<path>elements to change the wing shapes, body shape, or vein paths. This requires understanding SVG path syntax (M,C,Q,L,Z). - Details: Add more
<circle>,<ellipse>, or<path>elements within the#left-winggroup to add more spots, patterns, or finer veins. They will automatically be mirrored on the right side. - Size: Adjust the
widthandheightattributes on the root<svg>element. TheviewBoxensures the drawing scales correctly.
- Structure: Uses groups (
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- chatgpt-4o-latest-20250326Compare side by side →
- gpt-4o-2024-11-20Compare side by side →
gemma-3-27b-itCompare side by side →
- o3-2025-04-16Compare side by side →
gemini-2.5-pro-preview-03-25Compare side by side →
claude-3-5-sonnet-20241022Compare side by side →
claude-3-7-sonnet-20250219Compare side by side →
llama-3.3-70b-instructCompare side by side →
- gpt-4.1-2025-04-14Compare side by side →
- grok-3-mini-betaCompare side by side →
gemma-3-27b-itCompare side by side →
- o3-miniCompare side by side →