A quadratic Bézier curve is a simple curve that bends towards a point. In SVG we can use the <path>
element with the Q
command to draw a curve.
Like most path segments, the quadratic Bézier curve command continues the previous segment. In this example we use the M
command to move to the starting point and from there we start the curve.
The Q
command requires a control point and an end point.
First we set the control point. The curve bends towards this point.
Then we set the end point. This is where the curve ends.
You can set any color value that is valid in CSS. This includes named colors, hex codes, the rgb function and more. Set it to none
to hide.
Set the thickness of the stroke. It can be set to any positive number.
Set the shape to be used at the end of a line or open subpath.
Set the shape to be used at the corners of paths and basic shapes when they are stroked.
You can set any color value that is valid in CSS. This includes named colors, hex codes, the rgb function and more. Set it to none
to hide.