Last edited on
The First thing you should know is that the graphics.h is deprecated and obsolete.
But...
Well you can draw 4 rectangles for the border and split them using a for statement and a line function.
For the green one you can use that split technique and for the blue one just a rectangle with equal height and with.
Check out OpenGL or SFML.
Both will do what you want much more conveniently than the old BGI library.