How To: Screen Recording - raysan5/raylib GitHub Wiki

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.