Skip to content

Instantly share code, notes, and snippets.

@simonw
Created August 5, 2025 19:13
Show Gist options
  • Select an option

  • Save simonw/4c685f19f1a93b68eacb627125e36be4 to your computer and use it in GitHub Desktop.

Select an option

Save simonw/4c685f19f1a93b68eacb627125e36be4 to your computer and use it in GitHub Desktop.

2025-08-05T19:04:57 conversation: 01k1xsysmzkqpzj3m9qz32gytx id: 01k1xsypg8ca2k2kj73t394tbk

Model: cerebras-gpt-oss-120b

Prompt

Generate an SVG of a pelican riding a bicycle

Response

Below is a complete, self‑contained SVG that draws a whimsical cartoon pelican riding a bicycle.
You can copy the code into an .svg file or embed it directly in HTML.

<?xml version="1.0" encoding="UTF-8"?>
<!-- Pelican on a Bicycle – simple cartoon illustration -->
<svg xmlns="http://www.w3.org/2000/svg"
     width="500" height="300"
     viewBox="0 0 500 300"
     style="background:#f0f8ff">

  <!-- ====================== Bicycle ====================== -->
  <g id="bicycle" stroke="#2c3e50" stroke-width="4" fill="none">
    <!-- rear wheel -->
    <circle cx="150" cy="200" r="60" fill="#fff"/>
    <!-- front wheel -->
    <circle cx="350" cy="200" r="60" fill="#fff"/>
    <!-- frame -->
    <path d="M150,200
             L220,120          <!-- seat tube -->
             L300,120          <!-- top tube -->
             L350,200          <!-- front fork -->
             M220,120
             L220,150          <!-- seat post -->
             M220,150
             L260,200          <!-- chainstay -->
             M260,200
             L340,200          <!-- rear stay -->
             M260,200
             L260,160          <!-- bottom bracket -->
             M260,160
             L300,120"         <!-- down tube -->
    <!-- seat -->
    <rect x="205" y="100" width="30" height="10" fill="#2c3e50"/>
    <!-- handlebars -->
    <line x1="350" y1="200" x2="370" y2="170"/>
    <line x1="370" y1="170" x2="380" y2="175"/>
    <line x1="370" y1="170" x2="380" y2="165"/>
    <!-- pedals -->
    <circle cx="260" cy="160" r="8" fill="#2c3e50"/>
    <line x1="260" y1="160" x2="280" y2="180"/>
    <line x1="260" y1="160" x2="240" y2="140"/>
  </g>

  <!-- ====================== Pelican ====================== -->
  <g id="pelican" transform="translate(260,140) scale(0.9)">
    <!-- Body -->
    <ellipse cx="0" cy="0" rx="45" ry="30" fill="#ffde7d" stroke="#2c3e50" stroke-width="2"/>
    <!-- Wing (folded) -->
    <path d="M-20,-10 C-40,-30 -40,10 -20,20"
          fill="#ffde7d" stroke="#2c3e50" stroke-width="2"/>
    <!-- Tail -->
    <polygon points="-45,0 -55,-10 -55,10"
             fill="#ffde7d" stroke="#2c3e50" stroke-width="2"/>
    <!-- Head -->
    <circle cx="45" cy="-10" r="20" fill="#ffde7d" stroke="#2c3e50" stroke-width="2"/>
    <!-- Eye -->
    <circle cx="52" cy="-15" r="4" fill="#000"/>
    <!-- Beak -->
    <polygon points="65,-10 80,0 65,10"
             fill="#ffa500" stroke="#2c3e50" stroke-width="2"/>
    <!-- Neck (connecting body to head) -->
    <path d="M30,0 C35,-10 40,-10 45,-10"
          fill="none" stroke="#2c3e50" stroke-width="2"/>
    <!-- Legs (pedaling) -->
    <g id="legs" stroke="#2c3e50" stroke-width="3">
      <!-- Left leg -->
      <line x1="-10" y1="25" x2="-30" y2="45"/>
      <line x1="-30" y1="45" x2="-35" y2="55"/>
      <!-- Right leg (on pedal) -->
      <line x1="10" y1="25" x2="30" y2="45"/>
      <line x1="30" y1="45" x2="35" y2="55"/>
    </g>
  </g>

</svg>

How it works

  • Bicycle: Two wheels (<circle>), a simple frame built from <path> and <line> elements, a seat, handlebars, and pedals.
  • Pelican: Constructed from basic shapes—ellipse for the body, circles for head and eye, polygons for beak, tail, and wing, and paths for the neck. The legs are positioned to appear as if they are pedaling.
  • The whole pelican group is translated and slightly scaled so that it sits naturally on the bike.

Feel free to tweak colors, sizes, or positions to match the style you need!

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