Skip to content

raylib.TextFormat

JoeStrout edited this page Nov 16, 2026 · 4 revisions

Format text, replacing each %s, %d (or %i) and %f with the next value from args, and %% with %

Parameters

Parameter Default Value Note
text
args []

Return value

Condition Return Value
(always) list

Notes

Example

// Format a string with a numeric value
score = 42
msg = raylib.TextFormat("Score: %d", score)
print msg  // "Score: 42"

Clone this wiki locally