帮我生成一个usb连接电脑的svg图片
- User
帮我生成一个usb连接电脑的svg图片
Assistant
我来为您创建一个USB连接电脑的SVG图片:
<svg width="400" height="200" viewBox="0 0 400 200" xmlns="http://www.w3.org/2000/svg"> <!-- 电脑显示器 --> <g id="computer"> <!-- 显示器屏幕 --> <rect x="250" y="30" width="120" height="80" rx="5" fill="#2c3e50" stroke="#34495e" stroke-width="2"/> <rect x="260" y="40" width="100" height="60" fill="#3498db"/> <!-- 显示器底座 --> <rect x="300" y="110" width="20" height="15" fill="#34495e"/> <rect x="290" y="125" width="40" height="5" rx="2" fill="#34495e"/> <!-- 键盘 --> <rect x="270" y="140" width="80" height="25" rx="3" fill="#34495e"/> <rect x="275" y="145" width="70" height="15" fill="#2c3e50"/> </g> <!-- USB线缆 --> <g id="cable"> <!-- 线缆主体 --> <path d="M 200 100 Q 225 100 250 100" stroke="#666" stroke-width="4" fill="none"/> <!-- USB-A接口(连接电脑端) --> <rect x="240" y="95" width="15" height="10" fill="#888"/> <rect x="242" y="97" width="11" height="6" fill="#ccc"/> </g> <!-- USB设备(示例:U盘) --> <g id="usb-device"> <!-- U盘主体 --> <rect x="150" y="90" width="50" height="20" rx="3" fill="#e74c3c"/> <!-- USB接口部分 --> <rect x="195" y="95" width="10" height="10" fill="#888"/> <rect x="197" y="97" width="6" height="6" fill="#ccc"/> <!-- U盘装饰线 --> <line x1="160" y1="90" x2="160" y2="110" stroke="#c0392b" stroke-width="1"/> <line x1="170" y1="90" x2="170" y2="110" stroke="#c0392b" stroke-width="1"/> </g> <!-- 连接指示 --> <g id="connection-indicator"> <!-- 闪电符号表示连接 --> <path d="M 220 85 L 225 92 L 222 92 L 227 99 L 222 92 L 225 92 L 220 85" fill="#f1c40f" stroke="#f39c12" stroke-width="1"/> </g> <!-- 文字标签 --> <text x="310" y="185" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#333">电脑</text> <text x="175" y="185" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#333">USB设备</text> </svg>这个SVG图片展示了:
- 右侧的电脑(包含显示器、底座和键盘)
- 左侧的USB设备(示例为U盘)
- 连接两者的USB线缆
- 闪电符号表示正在连接
- 底部的文字标签
您可以根据需要调整颜色、大小或添加更多细节。如果您想要不同样式的USB连接图,请告诉我具体需求。
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.