This repo allows you to run shaders on a Raspberry pi 4, using the pi3d library. It enables you to use code from https://www.shadertoy.com/ and try it on the pi4 ...
For competitive programming, I use Ubuntu (a popular free Linux distribution) dual booted alongside Windows. My favorite IDE is Geany and it's perfect for short codes in CP, but I don't recommend it ...