Skip to content

LineCap

LineCap enumeration consists of styles for rendering the endpoint of a stroked line.

const LineCap = {
    Butt: 0,
    Round: 1,
    Square: 2,
}
Constant Description
Butt The stroke ends with the path, and does not project beyond it.
Round The stroke projects out as a semicircle, with the center at the end of the path.
Square The stroke projects out as a square, with the center at the end of the path.

Info

For more information, please see the official Apple and Android documentation.

Back to top