Apply alpha mask to image (in place); the image becomes GRAY_ALPHA or RGBA format. alphaMask should be the same size as image
None.
img = raylib.LoadImage("sprite.png") mask = raylib.GenImageGradientRadial(img.width, img.height, 0.0, raylib.WHITE, raylib.BLACK) raylib.ImageAlphaMask img, mask raylib.UnloadImage mask raylib.ExportImage img, "sprite_masked.png" raylib.UnloadImage img
There was an error while loading. Please reload this page.