Creating an SVG of an Xbox 360 controller involves drawing shapes that resemble the physical design of the controller. While it won't be a perfect replica, we can create a stylized version using basic SVG elements like rect, circle, ellipse, and path.
Here's a simple SVG code for a stylized Xbox 360 controller:
<svg width="400" height="250" viewBox="0 0 400 250" xmlns="http://www.w3.org/2000/svg">
<!-- Controller body -->
<rect x="50" y="50" rx="20" ry="20" width="300" height="180" fill="#333" stroke="#222" stroke-width="4"/>
<!-- Left joystick -->
<circle cx="100" cy="100" r="15" fill="#555"/>
<circle cx="100" cy="100" r="7" fill="#999"/>
<!-- Right joystick -->
<circle cx="300" cy="100" r="15" fill="#555"/>
<circle cx="300" cy="100" r="7" fill="#999"/>
<!-- D-pad -->
<rect x="90" y="140" width="10" height="30" fill="#bbb"/>
<rect x="80" y="150" width="30" height="10" fill="#bbb"/>
<!-- A button -->
<circle cx="320" cy="150" r="10" fill="#0f0"/>
<text x="320" y="155" font-size="10" text-anchor="middle" fill="#000">A</text>
<!-- B button -->
<circle cx="340" cy="130" r="10" fill="#f00"/>
<text x="340" y="135" font-size="10" text-anchor="middle" fill="#fff">B</text>
<!-- X button -->
<circle cx="300" cy="130" r="10" fill="#00f"/>
<text x="300" y="135" font-size="10" text-anchor="middle" fill="#fff">X</text>
<!-- Y button -->
<circle cx="320" cy="110" r="10" fill="#ff0"/>
<text x="320" y="115" font-size="10" text-anchor="middle" fill="#000">Y</text>
<!-- Start button -->
<rect x="180" y="140" width="20" height="10" rx="2" ry="2" fill="#999"/>
<!-- Back button -->
<rect x="140" y="140" width="20" height="10" rx="2" ry="2" fill="#999"/>
<!-- Guide button (Xbox logo) -->
<circle cx="200" cy="80" r="10" fill="#000"/>
<polygon points="200,70 205,85 195,85" fill="#fff"/>
<!-- Triggers (LB/RB) -->
<rect x="60" y="50" width="30" height="10" rx="5" ry="5" fill="#666"/>
<rect x="310" y="50" width="30" height="10" rx="5" ry="5" fill="#666"/>
<!-- Shoulders (Top buttons) -->
<rect x="80" y="40" width="20" height="10" rx="3" ry="3" fill="#444"/>
<rect x="290" y="40" width="20" height="10" rx="3" ry="3" fill="#444"/>
<!-- Battery compartment -->
<rect x="170" y="170" width="60" height="20" rx="5" ry="5" fill="#444"/>
<text x="200" y="185" font-size="10" text-anchor="middle" fill="#ccc">Battery</text>
</svg>
✅ Features Represented:
- Controller body: Rounded rectangle to mimic shape.
- Joysticks: Circles with smaller inner circle for thumbstick appearance.
- D-pad:十字形 using rectangles.
- Face buttons (A, B, X, Y): Colored circles labeled accordingly.
- Start / Back buttons: Small gray rectangles.
- Guide (Xbox logo): Circle with triangle symbol.
- Triggers (LB/RB): Top-side rectangles.
- Shoulder buttons (LT/RT): Rectangles above triggers.
- Battery compartment: Bottom center label.
📝 Notes:
- This is a simplified vector illustration, not a detailed 3D render.
- You can adjust colors, sizes, or add gradients/shadows for realism.
- For more complex designs, consider using vector graphic editors like Inkscape or Adobe Illustrator.
Would you like a version with hover effects or interactivity using CSS or JavaScript?