Function

drawLines

(opt: DrawLinesOpt): void

Draw lines.

param opt- The draw lines options.

drawLines({
    pts: [ vec2(0), vec2(0, height()), mousePos() ],
    width: 4,
    pos: vec2(100, 200),
    color: rgb(0, 0, 255),
});

since v3000.0

group Draw

kaplay logo

Layer

Miscalenous