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

Set how to draw the end of a line.

Example:

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

Data

  • :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.