Skip to content

Instantly share code, notes, and snippets.

@simonw
Created November 13, 2024 14:42
Show Gist options
  • Select an option

  • Save simonw/56217af454695a90be2c8e09c703198a to your computer and use it in GitHub Desktop.

Select an option

Save simonw/56217af454695a90be2c8e09c703198a to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

2024-11-13T14:40:56 conversation: 01jcjzjqmqswvaeee8614p1mkq

Model: qwen2.5-coder:32b

Prompt:

Generate an SVG of a pelican riding a bicycle

Response:

Creating an SVG image of a pelican riding a bicycle involves defining the shapes and paths for both the pelican and the bicycle. Below is a simple example of how you might create such an SVG:

<svg width="200" height="150" xmlns="http://www.w3.org/2000/svg">
  <!-- Bicycle Frame -->
  <rect x="70" y="80" width="60" height="30" fill="#8B4513"/>
  <circle cx="90" cy="110" r="15" fill="#8B4513"/>
  <circle cx="130" cy="110" r="15" fill="#8B4513"/>
  <line x1="70" y1="80" x2="90" y2="110" stroke="#8B4513" stroke-width="3"/>
  <line x1="130" y1="110" x2="160" y2="80" stroke="#8B4513" stroke-width="3"/>

  <!-- Bicycle Seat -->
  <rect x="95" y="70" width="10" height="10" fill="#8B4513"/>

  <!-- Pelican Head -->
  <circle cx="60" cy="20" r="15" fill="black"/>
  <path d="M 50,20 Q 55,10 60,20 T 70,20" stroke="black" stroke-width="3" fill="none"/>

  <!-- Pelican Body -->
  <ellipse cx="40" cy="50" rx="15" ry="20" fill="#FFD700"/>

  <!-- Pelican Wings -->
  <path d="M 60,20 Q 80,-10 100,20 T 120,20" stroke="black" stroke-width="3" fill="none"/>
  
  <!-- Pelican Legs -->
  <line x1="45" y1="70" x2="50" y2="90" stroke="black" stroke-width="3"/>
  <line x1="35" y1="70" x2="30" y2="90" stroke="black" stroke-width="3"/>

  <!-- Pelican Feet -->
  <circle cx="48" cy="92" r="3" fill="black"/>
  <circle cx="32" cy="92" r="3" fill="black"/>
</svg>

Explanation:

  • Bicycle Frame: Consists of a rectangle and two circles connected by lines to form the frame.
  • Pelican Head: A circle for the head with a path defining the beak.
  • Pelican Body: An ellipse represents the body.
  • Pelican Wings: Defined using quadratic Bézier curves to give a simple wing shape.
  • Pelican Legs and Feet: Lines and circles represent the legs and feet.

This SVG is quite basic and can be further refined with more detailed shapes, colors, and shading for a more realistic appearance. Feel free to adjust the coordinates and dimensions to better fit your vision!

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