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

Set how to connect two lines in a path.

Works with primitives that have clear joints, such as Rectangle, Quad, Triangle, and Path.

Example:

graph
  |> triangle( {{0,40},{40,40},{40,0}}
    join: :round,
    stroke: {2, :green}
  )

data-format

Data Format

Join can be any of the following values:

  • :miter - Miter the pointy part of the joint.
  • :round - Round the entire joint.
  • :bevel - Bevel the joint.