I'd like to use the Graphics module built it into nim but I can't find any example on how to do it
How do I go about creating a basic window and drawing a rectangle in it ?
Probably the best way is too learn nim first then use the sdl2 website to learn the sdl2 api and then attempt to create your box.
I was in your position for awhile too but that is what i found is the best way to learn new things is to go to the source and read the manual or learn the language well enough to understand its use.