Creating an SVG of an Xbox 360 controller involves drawing a stylized version of the controller using basic SVG shapes like <rect>, <circle>, and <path>. Below is a simplified SVG representation that captures the general layout and buttons of an Xbox 360 controller.
This is not an exact replica but a clean, minimalistic vector drawing meant for illustration or UI use.
✅ SVG Code: Xbox 360 Controller (Simplified)
xml Copy code
<svg width="400" height="250" viewBox="0 0 400 250" xmlns="http://www.w3.org/2000/svg">
<!-- Controller Body -->
<rect x="50" y="40" rx="20" ry="20" width="300" height="170" fill="#2E2E2E" stroke="#1C1C1C" stroke-width="2"/>
<!-- Left Joystick -->
<circle cx="100" cy="90" r="18" fill="#444" stroke="#222" stroke-width="2"/>
<circle cx="100" cy="90" r="6" fill="#888"/>
<!-- Right Joystick -->
<circle cx="300" cy="90" r="18" fill="#444" stroke="#222" stroke-width="2"/>
<circle cx="300" cy="90" r="6" fill="#888"/>
<!-- D-Pad -->
<polygon points="100,150 108,142 108,146 114,146 114,150 108,150 108,154 100,154" fill="#444"/>
<!-- A Button -->
<circle cx="310" cy="150" r="10" fill="green"/>
<!-- B Button -->
<circle cx="325" cy="135" r="10" fill="red"/>
<!-- X Button -->
<circle cx="295" cy="135" r="10" fill="blue"/>
<!-- Y Button -->
<circle cx="310" cy="120" r="10" fill="yellow"/>
<!-- Back Button -->
<rect x="160" y="100" width="20" height="10" rx="2" ry="2" fill="#666"/>
<!-- Start Button -->
<rect x="220" y="100" width="20" height="10" rx="2" ry="2" fill="#666"/>
<!-- Xbox Logo -->
<circle cx="200" cy="85" r="12" fill="#107C10"/>
<text x="200" y="90" font-family="Arial" font-size="10" text-anchor="middle" fill="white">X</text>
<!-- Left Shoulder Button -->
<rect x="80" y="45" width="40" height="10" rx="2" ry="2" fill="#666"/>
<!-- Right Shoulder Button -->
<rect x="280" y="45" width="40" height="10" rx="2" ry="2" fill="#666"/>
<!-- Left Trigger -->
<rect x="60" y="30" width="20" height="10" rx="2" ry="2" fill="#AAA"/>
<!-- Right Trigger -->
<rect x="320" y="30" width="20" height="10" rx="2" ry="2" fill="#AAA"/>
</svg>
📝 Notes:
This SVG uses rectangles and circles to represent all major features of the Xbox 360 controller.
Colors are approximated:
Green = A
Red = B
Blue = X
Yellow = Y
The body is dark gray (#2E2E2E) with rounded corners to resemble the original design.
You can adjust sizes, colors, or add labels as needed depending on your use case.
Would you like a more detailed or realistic SVG (e.g., with gradients or textures)?