Function

drawText

(opt: DrawTextOpt): void

Draw a piece of text.

param opt- The draw text options.

drawText({
    text: "oh hi",
    size: 48,
    font: "sans-serif",
    width: 120,
    pos: vec2(100, 200),
    color: rgb(0, 0, 255),
});

since v2000.0

group Draw

kaplay logo

Layer

Miscalenous