View Source Scenic.Primitive.Style.Cap (Scenic v0.11.2)

Set how to draw the end of a line.

Example:

graph
|> line( {{0,0}, {100,100}}, cap: :round )

data-format

Data Format

Cap can be any of the following values:

  • :butt - End of the line is flat, passing through the end point.
  • :round - End of the line is round, radiating from the end point.
  • :square - End of the line is flat, but projecting a square around the end point.