-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageDrawRectangleRec
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw rectangle within an image
| Parameter | Default Value | Note |
|---|---|---|
| dst | ||
| rec | ||
| color | WHITE |
None.
img = raylib.GenImageColor(128, 128, raylib.BLACK)
raylib.ImageDrawRectangleRec img, {x:32, y:32, width:64, height:64}, raylib.GREEN
raylib.ExportImage img, "rect_rec.png"
raylib.UnloadImage img