Skip to content

raylib.ImageDrawLineEx

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw a line defining thickness within an image

Parameters

Parameter Default Value Note
dst
start
end
thick
color

Return value

None.

Notes

Example

img = raylib.GenImageColor(128, 128, raylib.BLACK)
// Draw a thick diagonal line (3px)
raylib.ImageDrawLineEx img, [0, 0], [127, 127], 3, raylib.WHITE
raylib.ExportImage img, "thick_line.png"
raylib.UnloadImage img

Clone this wiki locally