Caution
This does NOT work on wayland, only X11
debian based: sudo apt -y install libx11-dev
arch based: sudo pacman -S --noconfirm --needed libx11
g++ -O3 main.cpp -lX11 -o raytracing
./raytracing width height
Note
If something isn't working accordingly, run echo $DISPLAY, go to line 275 in main.cpp and change :0 to the number that the command echoed, then recompile.