drawTriangle(opt: DrawTriangleOpt): void

Draw a triangle.

paramopt- The draw triangle options.

drawTriangle({
    p1: vec2(0),
    p2: vec2(0, height()),
    p3: mousePos(),
    pos: vec2(100, 200),
    color: rgb(0, 0, 255),
});

sincev3001.0