Skip to content

raylib.ImageText

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Create an image from text (default font)

Parameters

Parameter Default Value Note
text
fontSize
color

Return value

Condition Return Value
(always) map

Notes

Example

img = raylib.ImageText("Hello", 20, raylib.WHITE)
tex = raylib.LoadTextureFromImage(img)
raylib.UnloadImage img
// ... use tex, then unload ...
raylib.UnloadTexture tex

Clone this wiki locally