-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageDrawRectangleLines
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw rectangle lines within an image
| Parameter | Default Value | Note |
|---|---|---|
| dst | ||
| rec | ||
| thick | 1 | |
| color | WHITE |
None.
img = raylib.GenImageColor(128, 128, raylib.BLACK)
// Draw a 2px-thick white rectangle outline
raylib.ImageDrawRectangleLines img, {x:10, y:10, width:108, height:108}, 2, raylib.WHITE
raylib.ExportImage img, "rect_outline.png"
raylib.UnloadImage img