Function

drawFormattedText

(text: FormattedText): void

Draw a piece of formatted text from formatText().

param text- The formatted text object.

// text background
const txt = formatText({
    text: "oh hi",
});

drawRect({
    width: txt.width,
    height: txt.height,
});

drawFormattedText(txt);

since v2000.2

group Draw

kaplay logo

Layer

Miscalenous