用 svg 画一幅画,内容为老鼠吃樱桃
- User
用 svg 画一幅画,内容为老鼠吃樱桃
Assistant
下面是一个使用SVG绘制的老鼠吃樱桃的插画。代码包含可爱的卡通风格老鼠、樱桃和简单的背景:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300" width="400" height="300"> <!-- 背景 --> <rect width="100%" height="100%" fill="#f5e1ff"/> <!-- 地面 --> <rect x="0" y="240" width="400" height="60" fill="#8fbc8f"/> <!-- 樱桃树叶 --> <g transform="translate(50,50)"> <path d="M30 10 Q50 0 70 10 T110 10" fill="none" stroke="#2e8b57" stroke-width="3"/> <ellipse cx="70" cy="10" rx="15" ry="8" fill="#2e8b57"/> </g> <!-- 樱桃 --> <g id="cherries"> <!-- 樱桃1 --> <circle cx="80" cy="80" r="12" fill="#ff004f"/> <circle cx="95" cy="70" r="12" fill="#ff004f"/> <path d="M80 80 Q87 65 95 70" stroke="#191970" stroke-width="2" fill="none"/> <ellipse cx="88" cy="68" rx="4" ry="2" fill="#191970"/> <!-- 樱桃2(被咬的)--> <circle cx="180" cy="120" r="12" fill="#ff004f"/> <path d="M170 115 Q175 100 180 120" stroke="#191970" stroke-width="2" fill="none"/> <path d="M180 120c0 8 10 8 10 0" fill="#ff004f"/> </g> <!-- 老鼠身体 --> <ellipse cx="180" cy="180" rx="40" ry="30" fill="#8b7e66" stroke="#654321" stroke-width="2"/> <!-- 老鼠头部 --> <circle cx="180" cy="140" r="30" fill="#8b7e66" stroke="#654321" stroke-width="2"/> <!-- 老鼠耳朵 --> <ellipse cx="160" cy="130" rx="15" ry="20" transform="rotate(-20 160 130)" fill="#8b7e66"/> <ellipse cx="200" cy="130" rx="15" ry="20" transform="rotate(20 200 130)" fill="#8b7e66"/> <!-- 老鼠眼睛 --> <circle cx="170" cy="145" r="4" fill="white"/> <circle cx="190" cy="145" r="4" fill="white"/> <circle cx="170" cy="145" r="1" fill="black"/> <circle cx="190" cy="145" r="1" fill="black"/> <!-- 老鼠鼻子 --> <path d="M180 155 l-3 5 l6 0 l-3-5" fill="black"/> <!-- 老鼠嘴巴(咬樱桃)--> <path d="M180 160 q-10 10 10 10" stroke="#654321" stroke-width="2" fill="none"/> <!-- 老鼠前爪 --> <ellipse cx="150" cy="185" rx="8" ry="5" transform="rotate(-20 150 185)" fill="#8b7e66"/> <ellipse cx="210" cy="185" rx="8" ry="5" transform="rotate(20 210 185)" fill="#8b7e66"/> <!-- 老鼠尾巴 --> <path d="M220 180 q30-30 50 0 t30 30" fill="none" stroke="#654321" stroke-width="8" stroke-linecap="round"/> <!-- 阴影 --> <ellipse cx="180" cy="200" rx="30" ry="10" fill="#654321" opacity="0.2"/> </svg>这个SVG包含以下元素:
- 渐变紫色背景和绿色地面
- 樱桃树叶和两个樱桃组
- 卡通老鼠:
- 椭圆形身体和圆形头部
- 倾斜的耳朵和闪亮的眼睛
- 正在咬樱桃的嘴巴
- 动态的尾巴和前爪
- 阴影效果增加立体感
老鼠正在享用一个樱桃,另一个完整的樱桃挂在树叶上,整体画面充满童趣和生动感。
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.