-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageDrawLineEx
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw a line defining thickness within an image
| Parameter | Default Value | Note |
|---|---|---|
| dst | ||
| start | ||
| end | ||
| thick | ||
| color |
None.
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