Draw a triangle fan defined by points within an image (first vertex is the center)
None.
img = raylib.GenImageColor(128, 128, raylib.BLACK) // Draw a square as a triangle fan (center + 4 corners) pts = [[64,64], [0,0], [127,0], [127,127], [0,127], [0,0]] raylib.ImageDrawTriangleFan img, pts, raylib.GREEN raylib.ExportImage img, "fan.png" raylib.UnloadImage img
There was an error while loading. Please reload this page.