-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GenImageText
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Generate image: grayscale image from text data
| Parameter | Default Value | Note |
|---|---|---|
| text | ||
| fontSize | ||
| color |
| Condition | Return Value |
|---|---|
| (always) | map |
img = raylib.GenImageText("Hello", 20, raylib.WHITE)
tex = raylib.LoadTextureFromImage(img)
raylib.UnloadImage img
raylib.BeginDrawing
raylib.ClearBackground raylib.BLACK
raylib.DrawTexture tex, 10, 10, raylib.WHITE
raylib.EndDrawing
raylib.UnloadTexture tex