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

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-format

Data Format

{width, height}

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