Skip to content

raylib.TakeScreenshot

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Takes a screenshot of current screen NOTE: Provided fileName should not contain paths, saving to working directory

Parameters

Parameter Default Value Note
fileName

Return value

None.

Notes

Example

if raylib.IsKeyPressed(raylib.KEY_F12) then
    raylib.TakeScreenshot "screenshot.png"
end if

Clone this wiki locally