method
Screen.fill_triangle
Screen.fill_triangle(x1, y1, x2, y2, x3, y3, color)
Fills the triangle with corners (x1, y1), (x2, y2), (x3, y3) in color, scanning its bounding box with an inside test. The building block for flat-shaded polygons and arrowheads.
Example
program Demo {
handler DrawWorld phase Render {
Screen.clear(Color.MidnightBlue)
Screen.fill_triangle(x1: 10, y1: 10, x2: 30, y2: 10, x3: 20, y3: 26, color: Color.Red)
Screen.show()
}
}