Skip to content

raylib.ImageDrawLineStrip

JoeStrout edited this page Oct 17, 2026 · 1 revision

Draw a lines sequence within an image

Parameters

Parameter Default Value Note
dst
points
color WHITE

Return value

None.

Notes

Draws a connected line through each point in order; needs at least 2 points.

Example

img = raylib.GenImageColor(128, 128, raylib.BLACK)
raylib.ImageDrawLineStrip img, [[10, 100], [40, 20], [80, 90], [120, 10]], raylib.YELLOW
raylib.ExportImage img, "zigzag.png"
raylib.UnloadImage img

Clone this wiki locally