Okay, I'll design a friendly, somewhat classic-style robot with some modern SVG touches like gradients for a bit of depth.
xml Copy code
<svg width="300" height="450" viewBox="0 0 300 450" xmlns="http://www.w3.org/2000/svg">
<defs>
<!-- Gradients for metallic look -->
<linearGradient id="metalGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#b0c4de;stop-opacity:1" />
<stop offset="100%" style="stop-color:#778899;stop-opacity:1" />
</linearGradient>
<linearGradient id="darkMetalGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#708090;stop-opacity:1" />
<stop offset="100%" style="stop-color:#3a3a3a;stop-opacity:1" />
</linearGradient>
<radialGradient id="eyeGlow" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
<stop offset="0%" style="stop-color:#87cefa; stop-opacity:1"/>
<stop offset="60%" style="stop-color:#4682b4; stop-opacity:1"/>
<stop offset="100%" style="stop-color:#0000cd; stop-opacity:1"/>
</radialGradient>
<radialGradient id="redLightGlow" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
<stop offset="0%" style="stop-color:#ff8080; stop-opacity:1"/>
<stop offset="100%" style="stop-color:#dc143c; stop-opacity:1"/>
</radialGradient>
</defs>
<!-- Main Body -->
<g id="robot-body">
<!-- Legs -->
<g id="legs">
<!-- Left Leg -->
<rect x="70" y="280" width="40" height="100" fill="url(#darkMetalGradient)" stroke="#2f4f4f" stroke-width="2" rx="5"/>
<rect x="65" y="370" width="50" height="30" fill="url(#metalGradient)" stroke="#2f4f4f" stroke-width="2" rx="8"/> <!-- Foot -->
<!-- Right Leg -->
<rect x="190" y="280" width="40" height="100" fill="url(#darkMetalGradient)" stroke="#2f4f4f" stroke-width="2" rx="5"/>
<rect x="185" y="370" width="50" height="30" fill="url(#metalGradient)" stroke="#2f4f4f" stroke-width="2" rx="8"/> <!-- Foot -->
</g>
<!-- Torso -->
<rect x="75" y="150" width="150" height="150" fill="url(#metalGradient)" stroke="#2f4f4f" stroke-width="2" rx="15"/>
<!-- Torso Detail/Panel -->
<rect x="100" y="170" width="100" height="70" fill="url(#darkMetalGradient)" stroke="#4682b4" stroke-width="1.5" rx="5"/>
<circle cx="120" cy="190" r="8" fill="url(#redLightGlow)" stroke="#696969" stroke-width="1"/>
<circle cx="150" cy="190" r="8" fill="#f0e68c" stroke="#696969" stroke-width="1"/> <!-- Yellow light -->
<circle cx="180" cy="190" r="8" fill="#90ee90" stroke="#696969" stroke-width="1"/> <!-- Green light -->
<rect x="115" y="210" width="70" height="10" fill="#2f4f4f" rx="2"/> <!-- Vent/Slot -->
<!-- Arms -->
<g id="arms">
<!-- Left Arm -->
<g id="left-arm" transform="rotate(-10, 60, 180)">
<rect x="30" y="170" width="30" height="80" fill="url(#darkMetalGradient)" stroke="#2f4f4f" stroke-width="2" rx="5"/>
<circle cx="45" cy="170" r="18" fill="url(#metalGradient)" stroke="#2f4f4f" stroke-width="2"/> <!-- Shoulder -->
<rect x="25" y="240" width="40" height="30" fill="url(#metalGradient)" stroke="#2f4f4f" stroke-width="2" rx="8"/> <!-- Hand -->
</g>
<!-- Right Arm -->
<g id="right-arm" transform="rotate(10, 240, 180)">
<rect x="240" y="170" width="30" height="80" fill="url(#darkMetalGradient)" stroke="#2f4f4f" stroke-width="2" rx="5"/>
<circle cx="255" cy="170" r="18" fill="url(#metalGradient)" stroke="#2f4f4f" stroke-width="2"/> <!-- Shoulder -->
<rect x="235" y="240" width="40" height="30" fill="url(#metalGradient)" stroke="#2f4f4f" stroke-width="2" rx="8"/> <!-- Hand -->
</g>
</g>
<!-- Neck -->
<rect x="125" y="125" width="50" height="30" fill="url(#darkMetalGradient)" stroke="#2f4f4f" stroke-width="2" rx="3"/>
<!-- Head -->
<g id="head">
<rect x="100" y="50" width="100" height="80" fill="url(#metalGradient)" stroke="#2f4f4f" stroke-width="2" rx="20"/>
<!-- Eyes -->
<circle cx="130" cy="90" r="15" fill="url(#eyeGlow)" stroke="#191970" stroke-width="1.5"/>
<circle cx="170" cy="90" r="15" fill="url(#eyeGlow)" stroke="#191970" stroke-width="1.5"/>
<!-- Antenna -->
<line x1="150" y1="50" x2="150" y2="20" stroke="#778899" stroke-width="4"/>
<circle cx="150" cy="20" r="6" fill="url(#redLightGlow)" stroke="#696969" stroke-width="1"/>
<!-- Mouth (simple line) -->
<line x1="130" y1="115" x2="170" y2="115" stroke="#4682b4" stroke-width="3" stroke-linecap="round"/>
</g>
</g>
</svg>
How to use it:
Copy the code above.
Paste it into a plain text file.
Save the file with an .svg extension (e.g., robot.svg).
Open the file in a modern web browser (Chrome, Firefox, Edge, Safari) or an SVG editor (like Inkscape or Adobe Illustrator).
Key features of this SVG:
<defs> section: Defines reusable gradients (metalGradient, darkMetalGradient, eyeGlow, redLightGlow) to give parts a metallic or glowing appearance without repeating code.
Grouping (<g>): Organizes elements into logical parts (head, body, arms, legs). This makes the code easier to read and would make animation or transformations simpler if desired later.
Basic Shapes: Uses <rect>, <circle>, and <line> primitives.
Rounded Corners (rx, ry): Applied to rectangles for a softer, more designed look.
stroke and fill: Defines outlines and fill colors/gradients.
transform: Used on the arms (rotate) to give them a slightly more natural pose rather than being perfectly straight down.
Layering: Elements drawn later appear on top of earlier elements.
Details: Includes small lights on the chest panel and an antenna.
This is a good balance between simplicity of code and a "nicely done" visual result. You could make it far more complex with more <path> elements for intricate shapes, more detailed joints, shadows, highlights, etc., but this provides a solid, visually appealing robot.