Below is an SVG code that creates a whimsical illustration of a pelican riding a bicycle. The design is simplified and stylized for clarity and charm, using basic shapes and paths to represent the pelican and bicycle.
<svg width="400" height="300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300">
<!-- Background -->
<rect width="400" height="300" fill="#87CEEB"/>
<!-- Ground -->
<rect y="250" width="400" height="50" fill="#8B4513"/>
<!-- Bicycle -->
<g transform="translate(100, 150)">
<!-- Wheels -->
<circle cx="50" cy="70" r="20" fill="none" stroke="#333" stroke-width="4"/>
<circle cx="150" cy="70" r="20" fill="none" stroke="#333" stroke-width="4"/>
<!-- Frame -->
<path d="M50 70 L100 30 L150 70 L100 30 L100 70" fill="none" stroke="#333" stroke-width="4"/>
<!-- Seat -->
<path d="M90 30 L110 30" fill="none" stroke="#333" stroke-width="4"/>
<!-- Handlebars -->
<path d="M100 30 L120 10" fill="none" stroke="#333" stroke-width="4"/>
<!-- Pedals -->
<circle cx="100" cy="70" r="5" fill="#333"/>
<path d="M100 70 L90 80 M100 70 L110 60" fill="none" stroke="#333" stroke-width="2"/>
</g>
<!-- Pelican -->
<g transform="translate(150, 100)">
<!-- Body -->
<path d="M0 0 Q50 0 50 50 Q50 100 0 100 Q-50 100 -50 50 Q-50 0 0 0" fill="#FFF" stroke="#333" stroke-width="2"/>
<!-- Beak -->
<path d="M50 30 L100 40 L50 50" fill="#FFA500" stroke="#333" stroke-width="2"/>
<!-- Eye -->
<circle cx="30" cy="20" r="5" fill="#000"/>
<!-- Wing -->
<path d="M0 20 Q20 0 40 20" fill="#FFF" stroke="#333" stroke-width="2"/>
<!-- Legs (on pedals) -->
<path d="M0 70 L-20 100 M0 70 L20 90" fill="none" stroke="#FFA500" stroke-width="4"/>
</g>
</svg>
Explanation of the SVG:
-
Background and Ground:
- A light blue rectangle (
#87CEEB) serves as the sky.
- A brown rectangle (
#8B4513) at the bottom represents the ground.
-
Bicycle:
- Two circles represent the wheels.
- Lines and paths form the frame, seat, handlebars, and pedals.
- The bicycle is positioned using a
transform attribute to place it on the ground.
-
Pelican:
- The body is created using a quadratic Bézier curve (
Q) to form an oval shape.
- The beak is a triangle filled with orange (
#FFA500).
- A small black circle represents the eye.
- A curved path forms the wing.
- Two lines represent the legs, angled to suggest the pelican is pedaling.
-
Styling:
- The pelican is white with black outlines for a clean, cartoon-like look.
- The bicycle is drawn with thick black lines for simplicity.
You can copy this SVG code into an .svg file and open it in a browser or vector graphics editor (like Inkscape) to view or edit the illustration. Alternatively, you can embed it directly into an HTML file using the <svg> tag.