create an svg code for a a semi transparent cube representation seen from isometric view
- User
create an svg code for a a semi transparent cube representation seen from isometric view
Assistant
<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"> <!-- Define the isometric projection matrix --> <defs> <filter id="shadow" x="-50%" y="-50%" width="200%" height="200%"> <feDropShadow dx="4" dy="4" stdDeviation="3" flood-color="#000" flood-opacity="0.3"/> </filter> </defs> <!-- Cube dimensions --> <g transform="translate(200, 200)"> <!-- Define cube vertices in 3D space (isometric projection) --> <!-- Cube size: 80 units --> <!-- Back faces (darker) --> <g opacity="0.4"> <!-- Left back face --> <polygon points="-40,0 -80,-20 -40,-40 0,-20" fill="#4a5568" stroke="#2d3748" stroke-width="1"/> <!-- Right back face --> <polygon points="0,-20 40,0 40,-40 0,-60" fill="#2d3748" stroke="#1a202c" stroke-width="1"/> <!-- Top back face --> <polygon points="-40,-40 0,-60 40,-40 0,-20" fill="#718096" stroke="#4a5568" stroke-width="1"/> </g> <!-- Front faces (lighter and more transparent) --> <g opacity="0.6" filter="url(#shadow)"> <!-- Left front face --> <polygon points="-40,40 -80,20 -80,-20 -40,0" fill="#a0aec0" stroke="#718096" stroke-width="1"/> <!-- Right front face --> <polygon points="0,20 40,40 40,0 0,-20" fill="#718096" stroke="#4a5568" stroke-width="1"/> <!-- Bottom front face --> <polygon points="-40,0 0,20 40,0 0,-20" fill="#cbd5e0" stroke="#a0aec0" stroke-width="1"/> <!-- Left bottom face --> <polygon points="-40,0 -80,20 -40,40 0,20" fill="#e2e8f0" stroke="#cbd5e0" stroke-width="1"/> <!-- Right bottom face --> <polygon points="0,20 40,40 40,0 0,20" fill="#a0aec0" stroke="#718096" stroke-width="1"/> </g> <!-- Edges (subtle highlight) --> <g stroke="#ffffff" stroke-width="0.5" opacity="0.3"> <line x1="-40" y1="0" x2="0" y2="-20"/> <line x1="0" y1="-20" x2="40" y2="0"/> <line x1="-40" y1="0" x2="-80" y2="-20"/> <line x1="-40" y1="0" x2="-40" y2="40"/> </g> </g> </svg>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.