Scenic.Script.draw_triangle

You're seeing just the function draw_triangle, go back to Scenic.Script module for more information.
Link to this function

draw_triangle(ops, x0, y0, x1, y1, x2, y2, flag)

View Source

Specs

draw_triangle(
  ops :: t(),
  x0 :: number(),
  y0 :: number(),
  x1 :: number(),
  y1 :: number(),
  x2 :: number(),
  y2 :: number(),
  fill_stroke_flags :: fill_stroke()
) :: ops :: t()

Draws a Triangle defined by three points. Can be filled or stroked.

The draw_triangle/8 function creates a new path in the shape of a triangle and draws it. Each x/y pair is a point in the triangle.