A cubic Bézier curve is a complex curve that bends towards two points. In SVG we can use the <path>
element with the C
command to draw a curve.
Like most path segments, the cubic 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 C
command requiers two control points and an end point.
The first control point defines the curve’s initial direction.
Then the second control point sets from which direction should the curve reach its endpoint.
Finally, we set the endpoint of the curve.
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.