id
stringlengths
10
15
prompt
stringlengths
21
305
svg
stringlengths
88
453
category
stringclasses
16 values
concept
stringclasses
91 values
elements
listlengths
1
5
attributes
listlengths
0
13
path-01376
Show a quadratic Bézier curve from 166,141 to (11,88) with control point x 115, y 18, drawn in slate gray, 5 units thick, and no fill.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <path d="M166,141 Q115,18 11,88" fill="none" stroke="slategray" stroke-width="5"/> </svg>
path
path.quadratic
[ "svg", "path" ]
[ "d", "fill", "stroke", "stroke-width" ]
polyline-00535
An SVG with a sea green polyline through the points (15, 15), (200, 46), (140, 144) and unfilled. Make the SVG 300x200.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <polyline points="15,15 200,46 140,144" fill="none" stroke="seagreen"/> </svg>
polyline
polyline.open
[ "svg", "polyline" ]
[ "points", "fill", "stroke" ]
circle-00392
Using a 400x400 canvas, write SVG code that draws a circle with its center at (137,106), colored blue, and of radius 67.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"> <circle cx="137" cy="106" r="67" fill="blue"/> </svg>
circle
circle.basic
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
document-00318
Can you draw a box of size 144x202, in dark green and at (5,65) over a linen background? The canvas is 300x300.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <rect x="0" y="0" width="300" height="300" fill="linen"/> <rect x="5" y="65" width="144" height="202" fill="darkgreen"/> </svg>
document
document.background_shape
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
circle-00098
Produce an SVG showing an orchid circle with its center at (268,240) and radius 200.6. Make the SVG 512x512.
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"> <circle cx="268" cy="240" r="200.6" fill="orchid"/> </svg>
circle
circle.basic
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
transform-00762
An SVG with an orange oval with its center at x=180, y=39 and with radii 137 and 29, with transform scale(1.5 3). The canvas is 500x250.
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="250" viewBox="0 0 500 250"> <ellipse cx="180" cy="39" rx="137" ry="29" fill="orange" transform="scale(1.5 3)"/> </svg>
transform
transform.scale
[ "svg", "ellipse" ]
[ "cx", "cy", "rx", "ry", "fill", "transform" ]
path-02460
Produce an SVG showing a dark blue arrow pointing down, filling a 60x60 box with its top-left corner at 33,29, and drawn as a closed path of straight lines. Make the SVG 100x100.
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"> <path d="M54,29 L54,65 L39,65 L63,89 L87,65 L72,65 L72,29 Z" fill="darkblue"/> </svg>
path
path.arrow
[ "svg", "path" ]
[ "d", "fill" ]
gradient-00267
Draw a mid-sized circle on the left, filled with a vertical linear gradient from salmon at the top to violet at the bottom in a 200x300 image.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 200 300"> <defs> <linearGradient id="lg" x1="0%" y1="0%" x2="0%" y2="100%"> <stop offset="0%" stop-color="salmon"/> <stop offset="100%" stop-color="violet"/> </linearGradient> </defs> <circle cx="50" cy="150" r="40" ...
gradient
gradient.vertical
[ "svg", "defs", "linearGradient", "stop", "circle" ]
[ "id", "x1", "y1", "x2", "y2", "offset", "stop-color", "cx", "cy", "r", "fill" ]
reuse-00293
Draw an olive circle with id "shape" at (59, 103) with radius 18, repeated 2 more times with <use>, each copy shifted 54 further right.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <circle id="shape" cx="59" cy="103" r="18" fill="olive"/> <use href="#shape" x="54"/> <use href="#shape" x="108"/> </svg>
reuse
reuse.visible
[ "svg", "circle", "use" ]
[ "id", "cx", "cy", "r", "fill", "href", "x" ]
stroke-01635
Draw a <circle> element with cx="50", cy="100", r="40", fill="blue", stroke="seagreen", stroke-width="8", and stroke-opacity="0.6"
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <circle cx="50" cy="100" r="40" fill="blue" stroke="seagreen" stroke-width="8" stroke-opacity="0.6"/> </svg>
stroke
stroke.opacity
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill", "stroke", "stroke-width", "stroke-opacity" ]
polygon-00416
<polygon> with points="244.5,215 368,281 121,281" and fill=tan (400x300)
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"> <polygon points="244.5,215 368,281 121,281" fill="tan"/> </svg>
polygon
polygon.isosceles
[ "svg", "polygon" ]
[ "points", "fill" ]
circle-01166
A turquoise circle in the middle of the canvas and with a radius of 51. Make the SVG 300x200.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <circle cx="150" cy="100" r="51" fill="turquoise"/> </svg>
circle
circle.centered
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
color-00101
Give me an SVG of a circle using the color keyword chocolate, of radius 22, and centered at x 155, y 95.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <circle cx="155" cy="95" r="22" fill="chocolate"/> </svg>
color
color.named
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
text-00024
Generate an SVG containing a label reading “Login” at (90, 77) in a 256 by 256 SVG.
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"> <text x="90" y="77">Login</text> </svg>
text
text.basic
[ "svg", "text" ]
[ "x", "y" ]
line-00092
SVG line element, x1 136, y1 68, x2 48, y2 44, stroke orchid, stroke-width 8 (256x256)
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"> <line x1="136" y1="68" x2="48" y2="44" stroke="orchid" stroke-width="8"/> </svg>
line
line.basic
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke", "stroke-width" ]
text-00408
Using a 100x100 canvas, write SVG code that draws the word “Start” in Courier New, positioned at (12,50) and with font-size 20.
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"> <text x="12" y="50" font-family="Courier New" font-size="20">Start</text> </svg>
text
text.family
[ "svg", "text" ]
[ "x", "y", "font-family", "font-size" ]
rect-00925
Write SVG code that draws a brown square with side 105.8 and starting at x 54, y 4.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <rect x="54" y="4" width="105.8" height="105.8" fill="brown"/> </svg>
rect
rect.square
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
circle-01229
Write SVG code that draws a circle with radius 21 and with center (49,38) on a 100x100 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"> <circle cx="49" cy="38" r="21"/> </svg>
circle
circle.default_fill
[ "svg", "circle" ]
[ "cx", "cy", "r" ]
line-00298
Create a 7px tan line from x 130, y 23 to (11, 204) in a 300 by 300 SVG.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <line x1="130" y1="23" x2="11" y2="204" stroke="tan" stroke-width="7"/> </svg>
line
line.basic
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke", "stroke-width" ]
line-00956
An SVG with a salmon diagonal line from the top left to the bottom right and of width 7. Make the SVG 400x300.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"> <line x1="0" y1="0" x2="400" y2="300" stroke="salmon" stroke-width="7"/> </svg>
line
line.diagonal
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke", "stroke-width" ]
opacity-00053
Render a mid-sized rectangle near the bottom, with a maroon fill and with opacity set to 0.2.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <rect x="40" y="110" width="120" height="80" fill="maroon" opacity="0.2"/> </svg>
opacity
opacity.element
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "opacity" ]
stroke-00372
Can you draw a mid-sized rectangle at the middle right, filled with magenta, and with a lime stroke of width 5? Use a 500 by 250 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="250" viewBox="0 0 500 250"> <rect x="300" y="75" width="150" height="100" fill="magenta" stroke="lime" stroke-width="5"/> </svg>
stroke
stroke.color_width
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "stroke", "stroke-width" ]
path-01173
In a 300 by 200 SVG, produce an SVG showing a curve from 245,87 to (71, 133) bending toward 268,170, with a 6px purple stroke, with fill none.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <path d="M245,87 Q268,170 71,133" fill="none" stroke="purple" stroke-width="6"/> </svg>
path
path.quadratic
[ "svg", "path" ]
[ "d", "fill", "stroke", "stroke-width" ]
polyline-00523
Show a khaki polyline with points (165, 136), (176, 77), (98, 179), (127, 25), (184, 125) and unfilled.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <polyline points="165,136 176,77 98,179 127,25 184,125" fill="none" stroke="khaki"/> </svg>
polyline
polyline.open
[ "svg", "polyline" ]
[ "points", "fill", "stroke" ]
transform-01217
Generate an SVG containing a square positioned at (21, 37), with side 11 and colored brown, with transform matrix(1.5 0 0 1.5 22.5 24) (scaling by 1.5 and moving by (22.5, 24)). The canvas is 100x100.
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"> <rect x="21" y="37" width="11" height="11" fill="brown" transform="matrix(1.5 0 0 1.5 22.5 24)"/> </svg>
transform
transform.matrix
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "transform" ]
polygon-01088
Show a diamond centered at (257,163), 68 wide and 188 tall and filled in chocolate. The SVG is 300 wide and 300 tall.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <polygon points="257,69 291,163 257,257 223,163" fill="chocolate"/> </svg>
polygon
polygon.diamond
[ "svg", "polygon" ]
[ "points", "fill" ]
stroke-01090
I need an SVG with a dashed gold circle with center x 308, y 325 and with radius 156, stroke width 3, and using 7-unit dashes with 4-unit gaps. Make the SVG 512x512.
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"> <circle cx="308" cy="325" r="156" fill="none" stroke="gold" stroke-width="3" stroke-dasharray="7 4"/> </svg>
stroke
stroke.dasharray
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill", "stroke", "stroke-width", "stroke-dasharray" ]
path-00039
On a 300x300 canvas, generate a path with M and L commands: move to x 199, y 146, line to (35,60), then x 171, y 98, then x=49, y=73, drawn in indigo, 9 units thick, with fill none.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <path d="M199,146 L35,60 L171,98 L49,73" fill="none" stroke="indigo" stroke-width="9"/> </svg>
path
path.lines
[ "svg", "path" ]
[ "d", "fill", "stroke", "stroke-width" ]
rect-01010
rect x=16 y=74 width=60 height=60 fill=khaki (200x300)
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 200 300"> <rect x="16" y="74" width="60" height="60" fill="khaki"/> </svg>
rect
rect.square
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
path-00934
In a 400 by 300 SVG, draw a smooth curve from (79,229) to x=162, y=180 using control points (222, 268) and 248,197, with a plum stroke, and no fill.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"> <path d="M79,229 C222,268 248,197 162,180" fill="none" stroke="plum"/> </svg>
path
path.cubic
[ "svg", "path" ]
[ "d", "fill", "stroke" ]
line-00132
A 14px salmon line from (419,181) to (78, 238). The canvas is 640x480.
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="480" viewBox="0 0 640 480"> <line x1="419" y1="181" x2="78" y2="238" stroke="salmon" stroke-width="14"/> </svg>
line
line.basic
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke", "stroke-width" ]
color-00681
Make a square with side length 66, with fill color RGB 20, 184, 103, and positioned at 493,258 in a 640 by 480 SVG.
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="480" viewBox="0 0 640 480"> <rect x="493" y="258" width="66" height="66" fill="rgb(20,184,103)"/> </svg>
color
color.rgb
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
opacity-00425
Generate two overlapping circles of radius 76, one above the other: a sky blue one at x=128, y=75 and a salmon one at 128,181, both with opacity 0.8. The SVG is 256 wide and 256 tall.
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"> <circle cx="128" cy="75" r="76" fill="skyblue" opacity="0.8"/> <circle cx="128" cy="181" r="76" fill="salmon" opacity="0.8"/> </svg>
opacity
opacity.overlap
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill", "opacity" ]
group-00274
Outlines only: a <g> with fill none, a turquoise stroke and stroke width 1, containing a little rectangle in the bottom-left corner and a medium-sized rectangle on the right side. Use a 500 by 250 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="250" viewBox="0 0 500 250"> <g fill="none" stroke="turquoise" stroke-width="1"> <rect x="87" y="163" width="76" height="50"/> <rect x="300" y="75" width="150" height="100"/> </g> </svg>
group
group.stroke
[ "svg", "g", "rect" ]
[ "fill", "stroke", "stroke-width", "x", "y", "width", "height" ]
polygon-00236
Render a turquoise triangle with corners at (357, 235), (345, 223), (148, 251) on a 400×300 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"> <polygon points="357,235 345,223 148,251" fill="turquoise"/> </svg>
polygon
polygon.triangle
[ "svg", "polygon" ]
[ "points", "fill" ]
line-00515
Create a dodger blue line between x 73, y 206 and (6, 230). The canvas is 200x300.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 200 300"> <line x1="73" y1="206" x2="6" y2="230" stroke="dodgerblue"/> </svg>
line
line.basic
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke" ]
rect-00084
Render a tomato rectangle at (84,33) and 88 wide and 215 tall on a canvas of 300 by 300.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <rect x="84" y="33" width="88" height="215" fill="tomato"/> </svg>
rect
rect.basic
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
path-02342
A light blue heart fitting in the box from x=71, y=9 to x 252, y 190 and made of cubic Bézier curves. The SVG is 300 wide and 300 tall.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <path d="M161.5,63.3 C161.5,57.9 152.4,36.2 116.2,36.2 C71,36.2 71,85.9 71,85.9 C71,117.6 107.2,148.4 161.5,181 C215.8,148.4 252,117.6 252,85.9 C252,85.9 252,36.2 206.8,36.2 C179.6,36.2 161.5,57.9 161.5,63.3 Z" fill="lightblue"/> ...
path
path.heart
[ "svg", "path" ]
[ "d", "fill" ]
polygon-00629
Create an SVG image of a red octagon with its center at x 271, y 161 and with circumradius 28 on a 300x200 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <polygon points="271,133 290.8,141.2 299,161 290.8,180.8 271,189 251.2,180.8 243,161 251.2,141.2" fill="red"/> </svg>
polygon
polygon.regular
[ "svg", "polygon" ]
[ "points", "fill" ]
polyline-00026
Render a 4px slate gray zigzag polyline through the points (40, 278), (93.3, 61), (146.7, 278), (200, 61), (253.3, 278), (306.7, 61), (360, 278) and with no fill. Canvas size: 400x400.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"> <polyline points="40,278 93.3,61 146.7,278 200,61 253.3,278 306.7,61 360,278" fill="none" stroke="slategray" stroke-width="4"/> </svg>
polyline
polyline.zigzag
[ "svg", "polyline" ]
[ "points", "fill", "stroke", "stroke-width" ]
text-00345
Write an SVG of the word 'Stop' at x=19, y=148, in Helvetica and with font-size 64.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <text x="19" y="148" font-family="Helvetica" font-size="64">Stop</text> </svg>
text
text.family
[ "svg", "text" ]
[ "x", "y", "font-family", "font-size" ]
document-00255
Produce an SVG showing a little brown square in the lower left against a dark slate gray background.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <rect x="0" y="0" width="200" height="200" fill="darkslategray"/> <rect x="30" y="130" width="40" height="40" fill="brown"/> </svg>
document
document.background_shape
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
stroke-00184
In a 400 by 300 SVG, make a little tan rectangle with a 6px magenta stroke and at the bottom left.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"> <rect x="55" y="195" width="90" height="60" fill="tan" stroke="magenta" stroke-width="6"/> </svg>
stroke
stroke.color_width
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "stroke", "stroke-width" ]
stroke-01562
On a 200x300 canvas, make a thick orange polyline through (29, 268), (94, 50), (168, 214), stroke width 9, with round joins, and no fill.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 200 300"> <polyline points="29,268 94,50 168,214" fill="none" stroke="orange" stroke-width="9" stroke-linejoin="round"/> </svg>
stroke
stroke.linejoin
[ "svg", "polyline" ]
[ "points", "fill", "stroke", "stroke-width", "stroke-linejoin" ]
document-00320
Generate an SVG containing a cyan rectangle with width 125 and height 136 and with its top-left corner at x 71, y 26 over a beige background.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <rect x="0" y="0" width="200" height="200" fill="beige"/> <rect x="71" y="26" width="125" height="136" fill="cyan"/> </svg>
document
document.background_shape
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
rect-01557
Generate an SVG containing a crimson rounded box with width 30 and height 143, with rounded corners of radius 8 and starting at 157,34.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <rect x="157" y="34" width="30" height="143" rx="8" fill="crimson"/> </svg>
rect
rect.rounded
[ "svg", "rect" ]
[ "x", "y", "width", "height", "rx", "fill" ]
color-00102
Produce an SVG showing a rectangle at (68, 93), filled with the named color navy and 152 by 165 on a 300×300 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <rect x="68" y="93" width="152" height="165" fill="navy"/> </svg>
color
color.named
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
reuse-00107
Draw a hot pink five-pointed star with outer radius 19 centered at (0, 0) once as a reusable definition named "unit" and show copies at 152,24, x=165, y=158, and x=125, y=130.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <defs> <polygon id="unit" points="0,-19 5.3,-7.3 18.1,-5.9 8.6,2.8 11.2,15.4 0,9 -11.2,15.4 -8.6,2.8 -18.1,-5.9 -5.3,-7.3" fill="hotpink"/> </defs> <use href="#unit" x="152" y="24"/> <use href="#unit" x="165" y="158"/> ...
reuse
reuse.defs
[ "svg", "defs", "polygon", "use" ]
[ "id", "points", "fill", "href", "x", "y" ]
stroke-00983
line x1=20 y1=104 x2=180 y2=104 stroke=yellow stroke-width=2 stroke-dasharray="17 8"
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <line x1="20" y1="104" x2="180" y2="104" stroke="yellow" stroke-width="2" stroke-dasharray="17 8"/> </svg>
stroke
stroke.dasharray
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray" ]
line-01320
line x1="51" y1="94" x2="324" y2="94" stroke="royalblue" stroke-width="29" stroke-linecap="round" (500x250)
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="250" viewBox="0 0 500 250"> <line x1="51" y1="94" x2="324" y2="94" stroke="royalblue" stroke-width="29" stroke-linecap="round"/> </svg>
line
line.linecap
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap" ]
group-00625
On a 100x100 canvas, give me an SVG of a group moved with transform translate(41 5); inside, laid out in a 50x50 region: a small lime oval in the top-left corner and a little plum rectangle near the bottom.
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"> <g transform="translate(41 5)"> <ellipse cx="12" cy="12" rx="8" ry="5" fill="lime"/> <rect x="17" y="33" width="16" height="10" fill="plum"/> </g> </svg>
group
group.transform
[ "svg", "g", "ellipse", "rect" ]
[ "transform", "cx", "cy", "rx", "ry", "fill", "x", "y", "width", "height" ]
path-01903
SVG of a royal blue semicircle forming the right half of a circle, centered at (307,84), with radius 78 and drawn as a path with an arc. The SVG is 500 wide and 250 tall.
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="250" viewBox="0 0 500 250"> <path d="M307,6 A78,78 0 0 1 307,162 Z" fill="royalblue"/> </svg>
path
path.semicircle
[ "svg", "path" ]
[ "d", "fill" ]
path-02248
In a 500 by 250 SVG, make a path written with relative commands: start at 122,167, then draw relative lines by (64, -154), (-8, 128), (30, 29) and close it, filled with dark orange.
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="250" viewBox="0 0 500 250"> <path d="m122,167 l64,-154 l-8,128 l30,29 z" fill="darkorange"/> </svg>
path
path.relative
[ "svg", "path" ]
[ "d", "fill" ]
polygon-00000
Output SVG markup for an olive triangle with corners at (103, 45), (215, 125), (150, 63). Use a 300 by 200 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <polygon points="103,45 215,125 150,63" fill="olive"/> </svg>
polygon
polygon.triangle
[ "svg", "polygon" ]
[ "points", "fill" ]
stroke-00188
I need an SVG with a small dark green square with an 8px orange stroke and on the left side in a 200 by 300 SVG.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 200 300"> <rect x="30" y="130" width="40" height="40" fill="darkgreen" stroke="orange" stroke-width="8"/> </svg>
stroke
stroke.color_width
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "stroke", "stroke-width" ]
transform-01108
Render a square at (140,57), with a salmon fill and of size 93, with transform skewX(-30). The SVG is 300 wide and 200 tall.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <rect x="140" y="57" width="93" height="93" fill="salmon" transform="skewX(-30)"/> </svg>
transform
transform.skew
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "transform" ]
rect-00101
Produce an SVG showing a rect 173 by 45, filled in light blue and starting at (103, 41) in a 300 by 200 SVG.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <rect x="103" y="41" width="173" height="45" fill="lightblue"/> </svg>
rect
rect.basic
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
color-00833
Draw a little circle with red 166, green 155 and blue 96 and in the lower right.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <circle cx="150" cy="150" r="20" fill="rgb(166,155,96)"/> </svg>
color
color.rgb
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
line-00317
viewBox 0 0 200 300. SVG line element, x1 127, y1 85, x2 168, y2 61, stroke tan, stroke-width 4
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 200 300"> <line x1="127" y1="85" x2="168" y2="61" stroke="tan" stroke-width="4"/> </svg>
line
line.basic
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke", "stroke-width" ]
polyline-00957
Render a polyline through (37, 79), (121, 133), (54, 92), (188, 15), (82, 167), with a salmon fill and with a dark green stroke.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <polyline points="37,79 121,133 54,92 188,15 82,167" fill="salmon" stroke="darkgreen"/> </svg>
polyline
polyline.filled
[ "svg", "polyline" ]
[ "points", "fill", "stroke" ]
path-00726
On a 400x400 canvas, write an SVG of a cubic Bézier curve from x 63, y 366 to 107,249 with control points (253, 85) and (100, 358), drawn in dodger blue, 6 units thick, and no fill.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"> <path d="M63,366 C253,85 100,358 107,249" fill="none" stroke="dodgerblue" stroke-width="6"/> </svg>
path
path.cubic
[ "svg", "path" ]
[ "d", "fill", "stroke", "stroke-width" ]
rect-01142
Write SVG code that draws a square with a magenta fill, 155 on each side, and starting at (39, 0).
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <rect x="39" y="0" width="155" height="155" fill="magenta"/> </svg>
rect
rect.square
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
text-00249
An SVG with the word "Stop" with font-size 12 and with its baseline starting at 5,94 in a 100x100 image.
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"> <text x="5" y="94" font-size="12">Stop</text> </svg>
text
text.size
[ "svg", "text" ]
[ "x", "y", "font-size" ]
circle-01096
Output SVG markup for a circle in the middle of the canvas, in khaki and with a radius of 77 in a 256x256 image.
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"> <circle cx="128" cy="128" r="77" fill="khaki"/> </svg>
circle
circle.centered
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
polyline-00349
Draw a sea green stair-step line connecting (51, 461), (51, 256.2), (255.8, 256.2), (255.8, 51.4), (460.6, 51.4) and with stroke width 6. Use a 512 by 512 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"> <polyline points="51,461 51,256.2 255.8,256.2 255.8,51.4 460.6,51.4" fill="none" stroke="seagreen" stroke-width="6"/> </svg>
polyline
polyline.steps
[ "svg", "polyline" ]
[ "points", "fill", "stroke", "stroke-width" ]
color-01340
In a 200 by 300 SVG, generate an oval colored hot pink, with a horizontal radius of 17 and a vertical radius of 115, centered at (74, 117), and with fill opacity set to 0.1.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 200 300"> <ellipse cx="74" cy="117" rx="17" ry="115" fill="hotpink" fill-opacity="0.1"/> </svg>
color
color.fill_opacity
[ "svg", "ellipse" ]
[ "cx", "cy", "rx", "ry", "fill", "fill-opacity" ]
stroke-01055
viewBox 0 0 300 300. <rect> with x="156", y="78", width="144", height="144", fill="none", stroke="lime", stroke-width="4" and stroke-dasharray="16 10"
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <rect x="156" y="78" width="144" height="144" fill="none" stroke="lime" stroke-width="4" stroke-dasharray="16 10"/> </svg>
stroke
stroke.dasharray
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "stroke", "stroke-width", "stroke-dasharray" ]
path-01270
On a 500x250 canvas, produce an SVG showing a curve from (404,178) to x=382, y=153 bending toward (434,169), with a green stroke, and no fill.
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="250" viewBox="0 0 500 250"> <path d="M404,178 Q434,169 382,153" fill="none" stroke="green"/> </svg>
path
path.quadratic
[ "svg", "path" ]
[ "d", "fill", "stroke" ]
transform-00803
Generate an SVG containing a tan box starting at 72,46 and 50 wide and 17.7 tall, with transform scale(1.5).
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <rect x="72" y="46" width="50" height="17.7" fill="tan" transform="scale(1.5)"/> </svg>
transform
transform.scale
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "transform" ]
text-00756
SVG of text 'Menu' at (136, 137), with text-anchor middle, and 36px.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <text x="136" y="137" font-size="36" text-anchor="middle">Menu</text> </svg>
text
text.anchor
[ "svg", "text" ]
[ "x", "y", "font-size", "text-anchor" ]
path-00745
Create a cubic Bézier curve from x=41, y=66 to (123,127) with control points (75,128) and 116,78, stroked in silver with width 2, with fill none.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <path d="M41,66 C75,128 116,78 123,127" fill="none" stroke="silver" stroke-width="2"/> </svg>
path
path.cubic
[ "svg", "path" ]
[ "d", "fill", "stroke", "stroke-width" ]
path-01364
A curve from (185, 82) to x=30, y=172 bending toward (241,128), with an 8px pink stroke, unfilled. The canvas is 256x256.
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"> <path d="M185,82 Q241,128 30,172" fill="none" stroke="pink" stroke-width="8"/> </svg>
path
path.quadratic
[ "svg", "path" ]
[ "d", "fill", "stroke", "stroke-width" ]
path-01337
Write SVG code that draws a path with a Q command: start at 109,69, control point 11,53, end at x 70, y 78, drawn in cyan, and no fill.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <path d="M109,69 Q11,53 70,78" fill="none" stroke="cyan"/> </svg>
path
path.quadratic
[ "svg", "path" ]
[ "d", "fill", "stroke" ]
group-00040
Using a 300x200 canvas, draw a medium rectangle in the top-left corner and a small oval centered, all inside a <g> element that sets fill to pink.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <g fill="pink"> <rect x="15" y="10" width="120" height="80"/> <ellipse cx="150" cy="100" rx="30" ry="20"/> </g> </svg>
group
group.fill
[ "svg", "g", "rect", "ellipse" ]
[ "fill", "x", "y", "width", "height", "cx", "cy", "rx", "ry" ]
transform-01480
Create an SVG image of a light green ellipse with radii 59 and 24 centered on (0, 0) with transform translate(242 168) rotate(30). The canvas is 500x250.
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="250" viewBox="0 0 500 250"> <ellipse cx="0" cy="0" rx="59" ry="24" fill="lightgreen" transform="translate(242 168) rotate(30)"/> </svg>
transform
transform.combined
[ "svg", "ellipse" ]
[ "cx", "cy", "rx", "ry", "fill", "transform" ]
polygon-00721
Create an SVG image of a regular royal blue octagon with its center at (199, 38) and with circumradius 34. The SVG is 300 wide and 200 tall.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <polygon points="199,4 223,14 233,38 223,62 199,72 175,62 165,38 175,14" fill="royalblue"/> </svg>
polygon
polygon.regular
[ "svg", "polygon" ]
[ "points", "fill" ]
gradient-00356
A square starting at (149,109) and 31 on each side filled with a diagonal linear gradient from red in the top-left corner to dark red in the bottom-right, defined in <defs> with id "gradient" in a 200 by 300 SVG.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 200 300"> <defs> <linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="100%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="darkred"/> </linearGradient> </defs> <rect x="149" y="109" widt...
gradient
gradient.diagonal
[ "svg", "defs", "linearGradient", "stop", "rect" ]
[ "id", "x1", "y1", "x2", "y2", "offset", "stop-color", "x", "y", "width", "height", "fill" ]
rect-00259
rect x="86" y="79" width="104" height="118" fill="tan" (200x200)
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <rect x="86" y="79" width="104" height="118" fill="tan"/> </svg>
rect
rect.basic
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
opacity-00177
An SVG with a little royal blue square with 40% opacity and in the lower right. Canvas size: 200x300.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="300" viewBox="0 0 200 300"> <rect x="130" y="205" width="40" height="40" fill="royalblue" opacity="0.4"/> </svg>
opacity
opacity.element
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "opacity" ]
opacity-00371
In a 400 by 400 SVG, draw two overlapping circles of radius 107, one above the other: a teal one at (200, 146) and a black one at 200,254, both with opacity 0.5.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"> <circle cx="200" cy="146" r="107" fill="teal" opacity="0.5"/> <circle cx="200" cy="254" r="107" fill="black" opacity="0.5"/> </svg>
opacity
opacity.overlap
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill", "opacity" ]
circle-00028
On a 512x512 canvas, generate an SVG containing a tan circle radius 47 and centered at x 306, y 253.
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"> <circle cx="306" cy="253" r="47" fill="tan"/> </svg>
circle
circle.basic
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
color-00836
Write an SVG of a little square in the top-right corner and filled with rgb(195, 144, 220) in a 400x400 image.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"> <rect x="260" y="60" width="80" height="80" fill="rgb(195,144,220)"/> </svg>
color
color.rgb
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
stroke-00601
Draw a <circle> element with cx="73", cy="84", r="36", fill="none", stroke="coral" and stroke-width="7"
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <circle cx="73" cy="84" r="36" fill="none" stroke="coral" stroke-width="7"/> </svg>
stroke
stroke.only
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill", "stroke", "stroke-width" ]
transform-01104
A hot pink rectangle with its top-left corner at x=202, y=176 and of size 182x198, skewed along the x axis by 10 degrees. Use a 512 by 512 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"> <rect x="202" y="176" width="182" height="198" fill="hotpink" transform="skewX(10)"/> </svg>
transform
transform.skew
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "transform" ]
gradient-00451
Show a medium-sized circle in the top-left corner filled with an off-center radial gradient (center at 50% 25%, radius 70%) from silver to cyan (gradient id "grad").
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <defs> <radialGradient id="grad" cx="50%" cy="25%" r="70%"> <stop offset="0%" stop-color="silver"/> <stop offset="100%" stop-color="cyan"/> </radialGradient> </defs> <circle cx="50" cy="50" r="40" fill="url...
gradient
gradient.radial
[ "svg", "defs", "radialGradient", "stop", "circle" ]
[ "id", "cx", "cy", "r", "offset", "stop-color", "fill" ]
color-01053
circle cx=50 cy=100 r=20 fill="hsl(160,60%,55%)"
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <circle cx="50" cy="100" r="20" fill="hsl(160,60%,55%)"/> </svg>
color
color.hsl
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
transform-00232
An SVG with an ellipse with a red fill, with x-radius 71 and y-radius 33, and centered at (92,70), with transform translate(75 3). The SVG is 400 wide and 400 tall.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"> <ellipse cx="92" cy="70" rx="71" ry="33" fill="red" transform="translate(75 3)"/> </svg>
transform
transform.translate
[ "svg", "ellipse" ]
[ "cx", "cy", "rx", "ry", "fill", "transform" ]
ellipse-00450
Write SVG code that draws an oval with a horizontal radius of 81 and a vertical radius of 45.2, with fill color dark orange and with its center at (87,132).
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <ellipse cx="87" cy="132" rx="81" ry="45.2" fill="darkorange"/> </svg>
ellipse
ellipse.basic
[ "svg", "ellipse" ]
[ "cx", "cy", "rx", "ry", "fill" ]
line-00003
On a 300x300 canvas, generate a 4px crimson line starting at (31,69) and ending at 113,277.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <line x1="31" y1="69" x2="113" y2="277" stroke="crimson" stroke-width="4"/> </svg>
line
line.basic
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke", "stroke-width" ]
rect-00773
Write an SVG of a small gray rectangle at the middle left in a 400 by 400 SVG.
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"> <rect x="40" y="160" width="120" height="80" fill="gray"/> </svg>
rect
rect.worded
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill" ]
circle-00192
Produce an SVG showing a sky blue circle with center (101,39) and with radius 33.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <circle cx="101" cy="39" r="33" fill="skyblue"/> </svg>
circle
circle.basic
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
circle-00410
On a 400x400 canvas, write SVG code that draws a plum circle with a radius of 63 and at (66, 251).
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"> <circle cx="66" cy="251" r="63" fill="plum"/> </svg>
circle
circle.basic
[ "svg", "circle" ]
[ "cx", "cy", "r", "fill" ]
line-01416
A thick purple line starting at 29,102 and ending at (185,102), 12 units wide, and with square caps
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <line x1="29" y1="102" x2="185" y2="102" stroke="purple" stroke-width="12" stroke-linecap="square"/> </svg>
line
line.linecap
[ "svg", "line" ]
[ "x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap" ]
stroke-00285
Draw an indigo rect 60 wide and 34 tall, positioned at x 40, y 109 and with a silver stroke of width 1.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <rect x="40" y="109" width="60" height="34" fill="indigo" stroke="silver" stroke-width="1"/> </svg>
stroke
stroke.color_width
[ "svg", "rect" ]
[ "x", "y", "width", "height", "fill", "stroke", "stroke-width" ]
gradient-00234
Using a 256x256 canvas, create a little circle in the bottom-left corner, filled with a top-to-bottom gradient from black to dodger blue (gradient id "glow").
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"> <defs> <linearGradient id="glow" x1="0%" y1="0%" x2="0%" y2="100%"> <stop offset="0%" stop-color="black"/> <stop offset="100%" stop-color="dodgerblue"/> </linearGradient> </defs> <circle cx="64" cy="192" r=...
gradient
gradient.vertical
[ "svg", "defs", "linearGradient", "stop", "circle" ]
[ "id", "x1", "y1", "x2", "y2", "offset", "stop-color", "cx", "cy", "r", "fill" ]
text-00167
300x300 SVG, SVG text element, x 196, y 212, font-size 14, content "Sale"
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"> <text x="196" y="212" font-size="14">Sale</text> </svg>
text
text.size
[ "svg", "text" ]
[ "x", "y", "font-size" ]
polygon-00553
Generate a regular brown hexagon centered at x 110, y 99, 72 from center to each vertex, and with one vertex at the top.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <polygon points="110,27 172.4,63 172.4,135 110,171 47.6,135 47.6,63" fill="brown"/> </svg>
polygon
polygon.regular
[ "svg", "polygon" ]
[ "points", "fill" ]
text-00481
Produce an SVG showing the word “Welcome” with font-weight bold, at x=125, y=71 and at size 14. Use a 300 by 200 canvas.
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="200" viewBox="0 0 300 200"> <text x="125" y="71" font-size="14" font-weight="bold">Welcome</text> </svg>
text
text.weight
[ "svg", "text" ]
[ "x", "y", "font-size", "font-weight" ]
path-02203
Create a path written with relative commands: start at (40,61), then draw relative lines by (62, 126), (-80, -43), with a 3px dodger blue stroke, and no fill.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <path d="m40,61 l62,126 l-80,-43" fill="none" stroke="dodgerblue" stroke-width="3"/> </svg>
path
path.relative
[ "svg", "path" ]
[ "d", "fill", "stroke", "stroke-width" ]
polygon-01241
Give me an SVG of an olive polygon with points (32, 17), (211, 113), (152, 206), (80, 157). The SVG is 256 wide and 256 tall.
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"> <polygon points="32,17 211,113 152,206 80,157" fill="olive"/> </svg>
polygon
polygon.quad
[ "svg", "polygon" ]
[ "points", "fill" ]