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
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Layer
Camera
Level
Plugins
Button Bindings