Skip to content

How To: Screen Recording

Rob Loach edited this page Apr 4, 2024 · 3 revisions

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