Function

drawLine

(opt: DrawLineOpt): void

Draw a line.

param opt- The draw line options.

drawLine({
    p1: vec2(0),
    p2: mousePos(),
    width: 4,
    color: rgb(0, 0, 255),
});

since v3000.0

group Draw

kaplay logo

Layer

Miscalenous