In the last post we created an SDL2 window, now we are going to create some pretty colors on the window using GL.

This is about as simple a GL app as you can get. All we are doing is clearing the backbuffer with different colors. We cycle through the RGB channels at different rates.

The code can be found on my github, It only supports macOS and Emscripten right now. You’ll have to edit the main.c file to include color_change.c

You should see something like this.