Skip to content

Instantly share code, notes, and snippets.

@simonw
Created May 20, 2025 19:36
Show Gist options
  • Save simonw/3e6740d2a99be4922af455d14bc1c943 to your computer and use it in GitHub Desktop.
Save simonw/3e6740d2a99be4922af455d14bc1c943 to your computer and use it in GitHub Desktop.

2025-05-20T19:35:29 conversation: 01jvqk3e6e9hh1epfrjc8mc690 id: 01jvqk38b9505ftb5s6hp1cv63

Model: gemini-2.5-flash-preview-05-20

Prompt

Generate an SVG of a pelican riding a bicycle

Response

<svg width="800" height="600" viewBox="0 0 800 600" fill="none" xmlns="http://www.w3.org/2000/svg">
    <!-- Ground -->
    <rect x="0" y="550" width="800" height="50" fill="#8BC34A"/>

    <!-- Sun -->
    <circle cx="700" cy="80" r="60" fill="#FFEB3B"/>

    <!-- Bicycle -->
    <!-- Front Wheel -->
    <circle cx="600" cy="480" r="50" stroke="#333" stroke-width="8" fill="white"/>
    <!-- Back Wheel -->
    <circle cx="200" cy="480" r="50" stroke="#333" stroke-width="8" fill="white"/>

    <!-- Frame -->
    <path d="M200 480 L350 350 L550 350 L600 480 L350 350 L300 480 L200 480" stroke="#333" stroke-width="8" fill="transparent"/>
    <line x1="350" y1="350" x2="350" y2="300" stroke="#333" stroke-width="8"/> <!-- Seat post -->
    <line x1="550" y1="350" x2="600" y2="300" stroke="#333" stroke-width="8"/> <!-- Handlebar stem -->
    <path d="M600 300 H650 V280" stroke="#333" stroke-width="8" fill="transparent"/> <!-- Handlebars -->

    <!-- Pedals (simplified) -->
    <circle cx="300" cy="480" r="15" fill="#333"/>
    <circle cx="500" cy="400" r="15" fill="#333"/>

    <!-- Pelican -->
    <!-- Body -->
    <path d="M350 300 C300 200, 450 150, 500 250 C550 300, 500 350, 400 350 Z" fill="#FDD835" stroke="#333" stroke-width="3"/>
    <!-- Head -->
    <path d="M450 200 C480 150, 550 150, 550 200 C550 250, 480 250, 450 200 Z" fill="#FDD835" stroke="#333" stroke-width="3"/>
    <!-- Eye -->
    <circle cx="520" cy="180" r="5" fill="black"/>
    <!-- Beak -->
    <path d="M540 200 L650 220 L600 260 L540 250 Z" fill="#FFC107" stroke="#333" stroke-width="3"/>
    <!-- Pouch -->
    <path d="M600 260 C630 290, 600 320, 550 300 C580 280, 600 260, 600 260 Z" fill="#FFEB3B" stroke="#333" stroke-width="2"/>
    <!-- Legs -->
    <line x1="420" y1="350" x2="400" y2="400" stroke="#333" stroke-width="5"/>
    <line x1="480" y1="350" x2="500" y2="400" stroke="#333" stroke-width="5"/>
    <!-- Feet on Pedals -->
    <circle cx="400" cy="400" r="10" fill="#A1887F" stroke="#333" stroke-width="2"/>
    <circle cx="500" cy="400" r="10" fill="#A1887F" stroke="#333" stroke-width="2"/>

    <!-- Wings (suggested movement) -->
    <path d="M380 280 C300 250, 320 200, 380 180 C400 190, 380 280, 380 280 Z" fill="#FDD835" stroke="#333" stroke-width="2"/>
    <path d="M480 280 C550 250, 530 200, 480 180 C460 190, 480 280, 480 280 Z" fill="#FDD835" stroke="#333" stroke-width="2"/>

</svg>

Token usage:

11 input, 1,243 output, {"candidatesTokenCount": 1243, "promptTokensDetails": [{"modality": "TEXT", "tokenCount": 11}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment