from ti_graphics import * def drawTriangle(p1, p2, p3, c): setColor(c) fillPolygon((p1, p2, p3))