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

Define a "Scissor Rectangle" that drawing will be clipped to.

Example:

graph
|> triangle( {{0,40},{40,40},{40,0}}
  miter_limit: 2,
  fill: :green,
  scissor: {20, 40}
)

Data

{width, height}

  • width - Width of the scissor rectangle.
  • height - Height of the scissor rectangle.