Draw rectangle with gradient colors within an image, counter-clockwise color order
None.
Colors are for the corners in counter-clockwise order, starting at the top-left: top-left, bottom-left, bottom-right, top-right.
img = raylib.GenImageColor(128, 128, raylib.BLACK) raylib.ImageDrawRectangleGradientEx img, [0, 0, 128, 128], raylib.RED, raylib.GREEN, raylib.BLUE, raylib.WHITE raylib.ExportImage img, "gradient.png" raylib.UnloadImage img
There was an error while loading. Please reload this page.