Scenic.Primitive.Style.Cap (Scenic v0.11.0-beta.0) View Source

Set how to draw the end of a line.

Example:

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

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.