Skip to content

raylib.ImageDrawRectangleLines

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw rectangle lines within an image

Parameters

Parameter Default Value Note
dst
rec
thick 1
color WHITE

Return value

None.

Notes

Example

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

Clone this wiki locally