Skip to content

raylib.DrawLine

JoeStrout edited this page Nov 16, 2026 · 4 revisions

Draw a 1-pixel line between two points

Parameters

Parameter Default Value Note
startPosX 0
startPosY 0
endPosX 0
endPosY 0
color WHITE

Return value

None.

Notes

Example

raylib.DrawLine 50, 50, 350, 250, raylib.WHITE

Clone this wiki locally