-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageDrawTriangleLines
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw triangle outline within an image
| Parameter | Default Value | Note |
|---|---|---|
| dst | ||
| v1 | ||
| v2 | ||
| v3 | ||
| color |
None.
img = raylib.GenImageColor(128, 128, raylib.BLACK)
// Draw just the outline of a triangle
raylib.ImageDrawTriangleLines img, [64, 0], [127, 127], [0, 127], raylib.WHITE
raylib.ExportImage img, "triangle_outline.png"
raylib.UnloadImage img