Draw rectangle lines within an image
None.
Changed in raylib 6.2: this now takes position and size, with a 1-pixel line. The previous form (rec, thick, color) is now ImageDrawRectangleLinesEx.
rec, thick, color
img = raylib.GenImageColor(128, 128, raylib.BLACK) // Draw a 1px white rectangle outline raylib.ImageDrawRectangleLines img, 10, 10, 108, 108, raylib.WHITE raylib.ExportImage img, "rect_outline.png" raylib.UnloadImage img
There was an error while loading. Please reload this page.