Below is an SVG code that creates a stylized illustration of a wine glass on a table inside an indoor pool setting. The scene includes a pool, a table, a wine glass, and some basic indoor elements like walls and a ceiling. This is a simplified and artistic representation, but you can customize it further by adjusting colors, sizes, or adding more details.
<svg width="400" height="300" xmlns="http://www.w3.org/2000/svg">
<!-- Background (indoor setting) -->
<rect x="0" y="0" width="400" height="300" fill="#f0f0f0" /> <!-- Wall -->
<rect x="0" y="0" width="400" height="50" fill="#d0d0d0" /> <!-- Ceiling -->
<!-- Pool -->
<rect x="50" y="150" width="300" height="100" fill="#87CEEB" rx="10" ry="10" />
<rect x="50" y="150" width="300" height="20" fill="#4682B4" /> <!-- Pool edge -->
<!-- Table -->
<rect x="250" y="100" width="80" height="10" fill="#8B4513" /> <!-- Tabletop -->
<rect x="260" y="110" width="10" height="40" fill="#8B4513" /> <!-- Left leg -->
<rect x="310" y="110" width="10" height="40" fill="#8B4513" /> <!-- Right leg -->
<!-- Wine Glass -->
<g transform="translate(280, 70)">
<!-- Glass bowl -->
<path d="M 0 0 Q 10 10 10 20 Q 10 30 0 30 Q -10 30 -10 20 Q -10 10 0 0" fill="none" stroke="#000" stroke-width="1" />
<!-- Stem -->
<line x1="0" y1="30" x2="0" y2="50" stroke="#000" stroke-width="1" />
<!-- Base -->
<ellipse cx="0" cy="50" rx="10" ry="2" fill="none" stroke="#000" stroke-width="1" />
<!-- Wine (liquid inside glass) -->
<path d="M -8 20 Q 0 25 8 20" fill="#800020" />
</g>
<!-- Reflections on pool (optional) -->
<rect x="260" y="160" width="60" height="5" fill="rgba(255, 255, 255, 0.3)" rx="2" ry="2" />
<!-- Text (optional) -->
<text x="10" y="20" font-size="12" fill="#333">Indoor Pool Scene</text>
</svg>
Explanation of the SVG Elements:
- Background: The wall and ceiling are represented by rectangles with light gray colors to give an indoor feel.
- Pool: A rounded rectangle represents the pool, with a darker edge to simulate depth.
- Table: A simple rectangular tabletop with two legs, colored in a wood-like brown.
- Wine Glass: The wine glass is created using a combination of paths (for the bowl), a line (for the stem), and an ellipse (for the base). The wine liquid is a filled path inside the bowl.
- Reflections: A semi-transparent rectangle on the pool surface adds a subtle reflection effect.
- Text: Optional text to label the scene.
How to Use:
- Copy the code above into a
.svg file (e.g., wine-glass-indoor-pool.svg) and open it in a web browser or an SVG editor like Inkscape or Adobe Illustrator.
- You can customize the colors, sizes, and shapes by modifying the attributes in the SVG code.
- To embed this in an HTML page, you can use the
<img> tag or inline the SVG code directly within the HTML.
Customization Ideas:
- Add more details to the indoor setting, such as windows, lights, or furniture.
- Enhance the wine glass with gradients or shadows for a more realistic look.
- Add ripples or waves in the pool for a dynamic effect.
Let me know if you'd like help with further refinements!