Model: gemini-2.5-flash-preview-04-17
Generate an SVG of a pelican riding a bicycle
<svg width="600" height="400" xmlns="http://www.w3.org/2000/svg">
<!-- Background (optional, for context) -->
<rect width="100%" height="100%" fill="#e0f2f7"/>
<!-- Ground/Road -->
<line x1="0" y1="380" x2="600" y2="380" stroke="#4caf50" stroke-width="10"/>
<!-- Bicycle Frame -->
<circle cx="300" cy="300" r="50" fill="none" stroke="#333" stroke-width="8"/> <!-- Front Wheel -->
<circle cx="450" cy="300" r="50" fill="none" stroke="#333" stroke-width="8"/> <!-- Back Wheel -->
<line x1="300" y1="300" x2="450" y2="300" stroke="#333" stroke-width="8"/> <!-- Horizontal Bar -->
<line x1="375" y1="300" x2="375" y2="200" stroke="#333" stroke-width="8"/> <!-- Vertical Bar -->
<line x1="375" y1="200" x2="420" y2="180" stroke="#333" stroke-width="8"/> <!-- Handlebars -->
<line x1="375" y1="300" x2="330" y2="180" stroke="#333" stroke-width="8"/> <!-- Top Tube -->
<circle cx="375" cy="300" r="15" fill="#555"/> <!-- Crank -->
<line x1="375" y1="300" x2="375" y2="330" stroke="#555" stroke-width="5"/> <!-- Pedal Arm -->
<rect x="365" y="330" width="20" height="10" fill="#555"/> <!-- Pedal -->
<!-- Pelican -->
<!-- Body -->
<ellipse cx="375" cy="150" rx="60" ry="40" fill="#ffeb3b"/> <!-- Main body -->
<path d="M 375 110 C 375 50, 450 80, 450 110 L 430 130 Z" fill="#ffeb3b"/> <!-- Neck -->
<!-- Head -->
<circle cx="450" cy="100" r="30" fill="#ffeb3b"/> <!-- Head shape -->
<circle cx="465" cy="90" r="5" fill="#000"/> <!-- Eye -->
<!-- Beak -->
<path d="M 450 130 Q 480 150 550 150 L 530 160 Q 470 160 450 130 Z" fill="#ff9800"/> <!-- Upper beak -->
<path d="M 450 130 Q 480 120 550 120 L 530 110 Q 470 110 450 130 Z" fill="#ff9800"/> <!-- Lower beak outline -->
<path d="M 460 135 Q 490 140 530 140 L 510 145 Q 480 145 460 135 Z" fill="#ffe0b2"/> <!-- Pouch -->
<!-- Wings (positioned as if flapping or balancing) -->
<path d="M 350 140 Q 320 100 280 120 L 300 150 Z" fill="#ffeb3b"/> <!-- Left wing -->
<path d="M 400 140 Q 430 100 470 120 L 450 150 Z" fill="#ffeb3b"/> <!-- Right wing -->
<!-- Legs (straddling the bicycle seat) -->
<line x1="380" y1="180" x2="380" y2="250" stroke="#ffeb3b" stroke-width="8"/>
<line x1="370" y1="180" x2="370" y2="250" stroke="#ffeb3b" stroke-width="8"/>
<!-- Feet (on the pedals, simplified) -->
<circle cx="375" cy="330" r="10" fill="#ffeb3b"/>
</svg>Explanation of the SVG Code:
<svg>tag: The root element for the SVG image.widthandheightset the canvas size.<!-- Comments -->: Used to explain different parts of the code.- Background: An optional light blue rectangle provides a sky-like background.
- Ground/Road: A thick green line represents the ground the bicycle is on.
- Bicycle Frame:
circle: Used for the wheels.cxandcyare the center coordinates,ris the radius.fill="none"makes the circle hollow, andstrokeandstroke-widthdefine the outline.line: Used for the frame tubes.x1,y1,x2,y2are the start and end points.circleandrect: Used for the crank and pedal.
- Pelican:
- Body: An
ellipseis used for the main body shape. - Neck: A
pathis used for a more organic neck shape using a quadratic Bezier curve (Q). - Head: A
circlefor the head shape and a smallercirclefor the eye. - Beak: Two
pathelements create the upper and lower beak shapes, also using quadratic Bezier curves. A separatepathis used for the pouch part of the beak. - Wings:
pathelements with quadratic Bezier curves create simplified wing shapes, positioned to suggest movement or balance. - Legs:
lineelements represent the pelican's legs straddling the bicycle. - Feet: A simple
circleis placed near the pedal to represent the foot.
- Body: An
How to Use:
- Save the code as an
.svgfile (e.g.,pelican_bicycle.svg). - Open the file in a web browser, image editor (like Inkscape or Adobe Illustrator), or include it in an HTML document using an
<img>tag or by embedding the SVG code directly.
This SVG provides a basic, illustrative representation. You can further refine it by adding more details, colors, shadows, or even animations using CSS or JavaScript for a more dynamic effect.
11 input, 1,705 output, {"promptTokensDetails": [{"modality": "TEXT", "tokenCount": 11}], "thoughtsTokenCount": 25}