Skip to content
Peter0x44 edited this page Nov 26, 2025 · 1 revision

Within raylib, you have the ability to take a screenshot or record the screen to an animated .gif.

Screenshot

To take a screenshot, press F12. There will be a screenshot%%%.png file saved to the current working directory.

This requires SUPPORT_SCREEN_CAPTURE to be defined.

Screen Recording

To start recording the screen, press CTRL + F12. Press the keys again to save the recording to an animated screenrec%%%.gif to the current working directory.

This requires SUPPORT_GIF_RECORDING to be defined.

Clone this wiki locally