drawTriangle(opt: DrawTriangleOpt): void
Draw a triangle.
param
opt- The draw triangle options.
drawTriangle({ p1: vec2(0), p2: vec2(0, height()), p3: mousePos(), pos: vec2(100, 200), color: rgb(0, 0, 255), });
since
v3001.0
Draw a triangle.
param
opt- The draw triangle options.
drawTriangle({ p1: vec2(0), p2: vec2(0, height()), p3: mousePos(), pos: vec2(100, 200), color: rgb(0, 0, 255), });
since
v3001.0